Skip to content

Commit fe04fb2

Browse files
authored
install.sh: Fix usage of su (#2529)
1 parent c4610f7 commit fe04fb2

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)