From c52198f30d93dddf0cddf7abaf0dd6694797200b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Viem=20Ness?= Date: Mon, 18 Jan 2021 17:08:00 +0100 Subject: [PATCH] install.sh: Fix usage of su (#2529) See also https://github.com/cdr/code-server/pull/2529#issuecomment-763829674 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cf179af31..9decd53f7 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."