diff --git a/install.sh b/install.sh index cf179af3..9decd53f 100755 --- a/install.sh +++ b/install.sh @@ -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."