From c62ddbfa977fbf27bbf1241bf20e9e1835212197 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Fri, 25 Sep 2015 20:36:31 +0800 Subject: Remove quotes from subshell call in bash script Always no quotes for $() statement. We don't need quotes to hold blanks in result: # i=$(echo 1 2 3) # echo $i 1 2 3 # These quotes can make something wrong in some case: # i=$(echo '!') # # i="$(echo '!')" -bash: !: event not found # No real problem for current code, only to use a better code style. Change-Id: I06520f4b11ea6b56c4e73049b6f38bfc62fe1392 Closes-Bug: #1499716 Signed-off-by: Zhao Lei --- docker/ceph/ceph-mon/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker/ceph/ceph-mon') diff --git a/docker/ceph/ceph-mon/start.sh b/docker/ceph/ceph-mon/start.sh index 3afaa3ad4..a8661d449 100755 --- a/docker/ceph/ceph-mon/start.sh +++ b/docker/ceph/ceph-mon/start.sh @@ -21,7 +21,7 @@ set_configs # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then # Lookup our fsid from the ceph.conf - FSID="$(awk '/^fsid/ {print $3; exit}' /etc/ceph/ceph.conf)" + FSID=$(awk '/^fsid/ {print $3; exit}' /etc/ceph/ceph.conf) # Generating initial keyrings and monmap ceph-authtool --create-keyring "${KEYRING_MON}" --gen-key -n mon. --cap mon 'allow *' -- cgit v1.2.3