未验证 提交 c52198f3 编写于 作者: T Torbjørn Viem Ness 提交者: Anmol Sethi

install.sh: Fix usage of su (#2529)

See also https://github.com/cdr/code-server/pull/2529#issuecomment-763829674
上级 28e98c0e
......@@ -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."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册