mirror of
https://github.com/danog/code-server.git
synced 2024-11-26 20:34:56 +01:00
install.sh: Fix usage of su (#2529)
See also https://github.com/cdr/code-server/pull/2529#issuecomment-763829674
This commit is contained in:
parent
28e98c0ee0
commit
c52198f30d
@ -525,7 +525,7 @@ sudo_sh_c() {
|
|||||||
elif command_exists sudo; then
|
elif command_exists sudo; then
|
||||||
sh_c "sudo $*"
|
sh_c "sudo $*"
|
||||||
elif command_exists su; then
|
elif command_exists su; then
|
||||||
sh_c "su -c '$*'"
|
sh_c "su - -c '$*'"
|
||||||
else
|
else
|
||||||
echoh
|
echoh
|
||||||
echoerr "This script needs to run the following command as root."
|
echoerr "This script needs to run the following command as root."
|
||||||
|
Loading…
Reference in New Issue
Block a user