git-commit: quote $SUDOUSER too
authorDenis Ovsienko <denis@ovsienko.info>
Tue, 1 Jan 2019 16:55:01 +0000 (16:55 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Tue, 1 Jan 2019 16:55:01 +0000 (16:55 +0000)
gateways/git-commit

index c7226b5..da2a0f3 100755 (executable)
@@ -91,7 +91,7 @@ if [ -z "$SUDOUSER" -o -z "$REPODIR" -o -z "$FILEPATH" ]; then
 fi
 
 [ `whoami` = "$SUDOUSER" ] || {
-       sudo --non-interactive --set-home --user=$SUDOUSER -- "$0" "$@"
+       sudo --non-interactive --set-home --user="$SUDOUSER" -- "$0" "$@"
        exit $?
 }