]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: don't use bashism 2270/head
authorSage Weil <sage@redhat.com>
Fri, 15 Aug 2014 23:41:43 +0000 (16:41 -0700)
committerSage Weil <sage@redhat.com>
Fri, 15 Aug 2014 23:41:43 +0000 (16:41 -0700)
       -z STRING
              the length of STRING is zero

Signed-off-by: Sage Weil <sage@redhat.com>
src/init-ceph.in

index 03d0930060bcc15201f38b1d2f9ff78bc440ff9d..0ed77abab66a861d272a79132617bc6397993850 100644 (file)
@@ -182,7 +182,7 @@ done
 
 
 # if `--cluster` was not passed in, fallback to looking at the config name
-if ! [[ -n "$cluster" ]]; then
+if [ -z "$cluster" ]; then
     cluster=`echo $conf | awk -F'/' '{print $(NF)}' | cut -d'.' -f 1`
 else
     # if we were told to use a given cluster name then $conf needs to be updated