diff --git a/install_zsh.sh b/install_zsh.sh index 97176bf..3140629 100644 --- a/install_zsh.sh +++ b/install_zsh.sh @@ -1,12 +1,8 @@ #!/bin/sh # 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" +if [ ! command -v git &> /dev/null ] || [ ! command -v zsh &> /dev/null ]; then + echo "This script requires git and zsh" exit 1 fi