From 02d07f3e3dba0d50b1d907a8062bbaca18f88478 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Thu, 25 Mar 2021 12:08:00 +0100 Subject: fix: use `$USERNAME` guaranteed to always be defined in zsh Fixes #9701 --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/install.sh b/tools/install.sh index d4ecb7afe..cfc2808fe 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -227,7 +227,7 @@ EOF if [ -n "$SHELL" ]; then echo "$SHELL" > ~/.shell.pre-oh-my-zsh else - grep "^$USER:" /etc/passwd | awk -F: '{print $7}' > ~/.shell.pre-oh-my-zsh + grep "^$USERNAME:" /etc/passwd | awk -F: '{print $7}' > ~/.shell.pre-oh-my-zsh fi # Actually change the default shell to zsh -- cgit v1.2.3-70-g09d2