block-snapshot: fix ShellCheck warnings (3/3)
These were the remaining warnings that only affected the newer block-snapshot in this git repo.
This commit is contained in:
parent
50f35b3ec1
commit
8506547923
@ -99,7 +99,7 @@ create_dm_snapshot_origin() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
t=$(basename $0)
|
t=$(basename "$0")
|
||||||
t=${t#block-}
|
t=${t#block-}
|
||||||
|
|
||||||
case "$command" in
|
case "$command" in
|
||||||
@ -110,8 +110,8 @@ case "$command" in
|
|||||||
if [ "$p" == "MISSING" ]; then
|
if [ "$p" == "MISSING" ]; then
|
||||||
fatal "Missing device parameters ($t $XENBUS_PATH/params)"
|
fatal "Missing device parameters ($t $XENBUS_PATH/params)"
|
||||||
fi
|
fi
|
||||||
echo $p > "$HOTPLUG_STORE-params"
|
echo "$p" > "$HOTPLUG_STORE-params"
|
||||||
echo $t > "$HOTPLUG_STORE-type"
|
echo "$t" > "$HOTPLUG_STORE-type"
|
||||||
base=${p%%:*}
|
base=${p%%:*}
|
||||||
cow=${p#*:}
|
cow=${p#*:}
|
||||||
cow2=${p##*:}
|
cow2=${p##*:}
|
||||||
|
Loading…
Reference in New Issue
Block a user