From 8506547923d16fb9b1c905be76cb1f9725513dc7 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 16 Jan 2018 06:20:02 +0000 Subject: [PATCH] block-snapshot: fix ShellCheck warnings (3/3) These were the remaining warnings that only affected the newer block-snapshot in this git repo. --- linux/system-config/block-snapshot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/system-config/block-snapshot b/linux/system-config/block-snapshot index d0d7f09a..eaea93d3 100755 --- a/linux/system-config/block-snapshot +++ b/linux/system-config/block-snapshot @@ -99,7 +99,7 @@ create_dm_snapshot_origin() { fi } -t=$(basename $0) +t=$(basename "$0") t=${t#block-} case "$command" in @@ -110,8 +110,8 @@ case "$command" in if [ "$p" == "MISSING" ]; then fatal "Missing device parameters ($t $XENBUS_PATH/params)" fi - echo $p > "$HOTPLUG_STORE-params" - echo $t > "$HOTPLUG_STORE-type" + echo "$p" > "$HOTPLUG_STORE-params" + echo "$t" > "$HOTPLUG_STORE-type" base=${p%%:*} cow=${p#*:} cow2=${p##*:}