Some refactor

master
Plaza521 2023-10-27 17:12:07 +03:00
parent fd5a0b3ebe
commit 4bb168d556
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
1 changed files with 2 additions and 6 deletions

View File

@ -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