From e74202be060e3075e7ecd1d50e009c425ae11721 Mon Sep 17 00:00:00 2001 From: Frank Qing Date: Fri, 6 Sep 2024 16:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(install.sh):=20Fix=20shell=20ch?= =?UTF-8?q?ange=20command=20to=20use=20sudo=20and=20specify=20$USER=20?= =?UTF-8?q?=F0=9F=92=A1=20(install.sh):=20Update=20error=20message=20for?= =?UTF-8?q?=20clarity=20when=20shell=20change=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 229852d..0508956 100755 --- a/install.sh +++ b/install.sh @@ -245,12 +245,11 @@ else # source ~/.zshrc echo -e "\nSudo access is needed to change default shell\n" - if chsh -s $(which zsh) && /bin/zsh -i -c 'omz update'; then + if sudo chsh -s $(which zsh) $USER && /bin/zsh -i -c 'omz update'; then echo -e "Installation complete, exit terminal and enter a new zsh session" echo -e "In a new zsh session manually run: build-fzf-tab-module" else - echo -e "Something is wrong" - + echo -e "Something went wrong" fi fi exit \ No newline at end of file