summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/common.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 104850b..f6aea93 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -238,7 +238,6 @@ check_root() {
if type -P sudo >/dev/null; then
exec sudo -- "$@"
else
- exec su root -c "$(printf '%q' "$@")"
+ exec su root -c "$(printf ' %q' "$@")"
fi
- die 'This script must be run as root.'
}