aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index ae71736..1ff1d37 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -8,13 +8,16 @@ fi
if command -v vim > /dev/null; then
VIMCMD="vim"
fi
+if command -v git > /dev/null; then
+ GITCMD="git"
+fi
if command -v wget > /dev/null; then
DLCMD="wget -O"
elif command -v curl > /dev/null; then
DLCMD="curl -Lo"
fi
-if [ -z "$UNZIPCMD" ] || [ -z "$VIMCMD" ] || [ -z "$DLCMD" ]; then
- echo "requires 'unzip', 'vim', and either 'wget' or 'curl'"
+if [ -z "$UNZIPCMD" ] || [ -z "$VIMCMD" ] || [ -z "$DLCMD" ] || [ -z "$GITCMD" ]; then
+ echo "requires 'unzip', 'vim', 'git', and either 'wget' or 'curl'"
exit 1
fi