From 4bb168d556a80c0bc3cfd68e7762f823e884d9c4 Mon Sep 17 00:00:00 2001 From: Plaza521 Date: Fri, 27 Oct 2023 17:12:07 +0300 Subject: [PATCH] Some refactor --- install_zsh.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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