We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
upgrade.sh
su -c
1 parent 5651c65 commit af09136Copy full SHA for af09136
contrib/upgrade.sh
@@ -24,7 +24,8 @@
24
25
function giteacmd {
26
if [[ $sudocmd = "su" ]]; then
27
- "$sudocmd" - "$giteauser" -c "$giteabin" --config "$giteaconf" --work-path "$giteahome" "$@"
+ # `-c` only accept one string as argument.
28
+ "$sudocmd" - "$giteauser" -c "$(printf "%q " "$giteabin" "--config" "$giteaconf" "--work-path" "$giteahome" "$@")"
29
else
30
"$sudocmd" --user "$giteauser" "$giteabin" --config "$giteaconf" --work-path "$giteahome" "$@"
31
fi
0 commit comments