From e29d7d8dd40bc9ea7927251c53d5a89342669e12 Mon Sep 17 00:00:00 2001 From: Andreas Politz Date: Sun, 10 Sep 2017 22:33:08 +0200 Subject: Fix incorrect use of variable expansion su -c requires exactly one argument, while $@ expands into a list of them. --- server/autobuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/autobuild b/server/autobuild index e371608..2f862d5 100755 --- a/server/autobuild +++ b/server/autobuild @@ -60,7 +60,7 @@ exec_privileged() { elif which sudo >/dev/null 2>&1; then sudo "$@" elif which su >/dev/null 2>&1; then - su -c "$@" + su -c "$*" else echo "No such program: sudo or su" >&2 exit 1 -- cgit v1.0