1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

fsadm: no mixing string and array

Argument mixes string and array. Use * or separate argument.
This commit is contained in:
Zdenek Kabelac 2017-06-29 16:01:42 +02:00
parent 05a6d43476
commit afded3e532

View File

@ -111,7 +111,7 @@ tool_usage() {
}
verbose() {
test -n "$VERB" && echo "$TOOL: $@" || true
test -n "$VERB" && echo "$TOOL:" "$@" || true
}
# Support multi-line error messages
@ -124,10 +124,10 @@ error() {
dry() {
if [ "$DRY" -ne 0 ]; then
verbose "Dry execution $@"
verbose "Dry execution" "$@"
return 0
fi
verbose "Executing $@"
verbose "Executing" "$@"
"$@"
}
@ -397,7 +397,7 @@ temp_umount() {
}
yes_no() {
echo -n "$@? [Y|n] "
echo -n "$@" "? [Y|n] "
if [ -n "$YES" ]; then
echo y ; return 0