* Proper use of printf

* Prevent possible word splitting when eval sudo
This commit is contained in:
Ali Abbas
2014-03-29 16:42:11 +01:00
parent 175625a166
commit 51130f4be3
+2 -2
View File
@@ -43,8 +43,8 @@ done
if [[ $# -gt 0 ]]
then
eval sudo "${sudo_args[@]}" /usr/bin/env $(/usr/bin/env | grep -E '^GO|^GVM|^PATH' | sed 's/=\(.*\)$/="\1"/' ) "$@"
eval sudo "${sudo_args[@]}" /usr/bin/env "$(/usr/bin/env | grep -E '^GO|^GVM|^PATH' | sed 's/=\(.*\)$/="\1"/' )" "$@"
else
printf "Usage:\n $0 [--trace] [--verbose] [sudo-options] command [command-options]\n"
printf "Usage:\n %s [--trace] [--verbose] [sudo-options] command [command-options]\n $0"
fi