Skip to content

Commit c52198f

Browse files
tovinenhooyr
authored andcommitted
install.sh: Fix usage of su (#2529)
See also #2529 (comment)
1 parent 28e98c0 commit c52198f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ sudo_sh_c() {
525525
elif command_exists sudo; then
526526
sh_c "sudo $*"
527527
elif command_exists su; then
528-
sh_c "su -c '$*'"
528+
sh_c "su - -c '$*'"
529529
else
530530
echoh
531531
echoerr "This script needs to run the following command as root."

0 commit comments

Comments
 (0)