Skip to content

Commit

Permalink
install.sh: Fix usage of su (coder#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
tovine authored and nhooyr committed Jan 20, 2021
1 parent 28e98c0 commit c52198f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ sudo_sh_c() {
elif command_exists sudo; then
sh_c "sudo $*"
elif command_exists su; then
sh_c "su -c '$*'"
sh_c "su - -c '$*'"
else
echoh
echoerr "This script needs to run the following command as root."
Expand Down

0 comments on commit c52198f

Please sign in to comment.