From 4a76889d4647f58fa1e569d8c61615f2ca791ce3 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 10 Feb 2022 21:14:50 +0100 Subject: [PATCH] Check for zsh before continue --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 7614685..dee9fbb 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,9 @@ #!/bin/sh +if [ ! -x `which zsh` ]; then + exit +fi + rm ~/.zshrc ln -s ~/.dotfiles/zshrc ~/.zshrc touch ~/.dotfiles/zsh/device-specific @@ -10,4 +14,5 @@ chmod 600 ~/.ssh/config rm ~/.bashrc rm ~/.bash_logout rm ~/.bash_history + zsh