Commit 974c4b67 authored by Tony Fahrion's avatar Tony Fahrion

fix scripts/get runAsRoot CMD var building

Avoid using $* multiple times
parent f43da7fc
......@@ -51,7 +51,7 @@ runAsRoot() {
local CMD="$*"
if ! whoami | egrep -q '^root$'; then
CMD="sudo $*"
CMD="sudo $CMD"
fi
$CMD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment