Some refactor
parent
fd5a0b3ebe
commit
4bb168d556
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue