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