Permalink
Browse files

fixed bug - should use double quotes with -n in bash

  • Loading branch information...
1 parent 2ce099e commit d33601e6286ce83d7352ba8a41f3b06f9e606cdc @boopathi boopathi committed Sep 22, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 utils/flashcache
View
@@ -15,11 +15,11 @@ MOUNTPOINT=
FLASHCACHE_NAME=
# Just a check, to validate the above params are set
-[ -n $SSD_DISK ] || exit 10
-[ -n $BACKEND_DISK ] || exit 11
-[ -n $CACHEDEV_NAME ] || exit 12
-[ -n $MOUNTPOINT ] || exit 13
-[ -n $FLASHCACHE_NAME ] || exit 14
+[ -n "$SSD_DISK" ] && exit 10
+[ -n "$BACKEND_DISK" ] && exit 11
+[ -n "$CACHEDEV_NAME" ] && exit 12
+[ -n "$MOUNTPOINT" ] && exit 13
+[ -n "$FLASHCACHE_NAME" ] && exit 14
# Source function library.
. /etc/rc.d/init.d/functions

0 comments on commit d33601e

Please sign in to comment.