Some refactor
parent
fd5a0b3ebe
commit
4bb168d556
|
@ -1,12 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Check if necessary things are installed
|
# Check if necessary things are installed
|
||||||
if ! command -v git &> /dev/null; then
|
if [ ! command -v git &> /dev/null ] || [ ! command -v zsh &> /dev/null ]; then
|
||||||
echo "This script requires git"
|
echo "This script requires git and zsh"
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if ! command -v zsh &> /dev/null; then
|
|
||||||
echo "This script requires zsh"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue