mirror of
https://github.com/ceph/ceph
synced 2025-03-19 17:06:24 +00:00
init-ceph: don't use bashism
-z STRING the length of STRING is zero Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
dc611e864b
commit
0d6d1aa7e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user