Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
fixed bug - should use double quotes with -n in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Sep 22, 2012
1 parent 2ce099e commit d33601e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/flashcache
Expand Up @@ -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
Expand Down

0 comments on commit d33601e

Please sign in to comment.