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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 0d6d1aa7e0c5e0b5f99c9b548a1f890c511b4299)

src/init-ceph.in

index 52c0eda957f02f3ec1472795e73df3c113334bbf..7276830c3021fdeb3f39f0518c18dc14345e1843 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