fix scripts/get runAsRoot CMD var building

Avoid using $* multiple times
reviewable/pr2626/r1
Tony Fahrion 8 years ago
parent f43da7fcfb
commit 974c4b67c7

@ -51,7 +51,7 @@ runAsRoot() {
local CMD="$*" local CMD="$*"
if ! whoami | egrep -q '^root$'; then if ! whoami | egrep -q '^root$'; then
CMD="sudo $*" CMD="sudo $CMD"
fi fi
$CMD $CMD

Loading…
Cancel
Save