From 06da1556c4f772b7c7756d12afc001ab563fd0f1 Mon Sep 17 00:00:00 2001 From: Plaza521 Date: Fri, 27 Oct 2023 16:52:42 +0300 Subject: [PATCH] Now script requires zsh --- install_zsh.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install_zsh.sh b/install_zsh.sh index a9f9a2c..e7f3666 100644 --- a/install_zsh.sh +++ b/install_zsh.sh @@ -1,10 +1,14 @@ #!/bin/sh -# Check if git installed +# Check if necessary things are installed if ! command -v git &> /dev/null; then echo "This script requires git" exit 1 fi +if ! command -v zsh &> /dev/null; then + echo "This script requires zsh" + exit 1 +fi # Asking if user really want to install read -p 'This script will install oh my zsh and replace .zshrc with its own. If you still want to run it, type "y": ' -n 1 -r