aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2023-04-02 14:22:57 -0500
committerMatt Singleton <matt@xcolour.net>2023-04-02 14:22:57 -0500
commit78544fe088f0868e59d85ec4729bc14368fd7eec (patch)
treeda5d42e5ae4b2d82c73e2e3708bee250a890f22f
parentb483c295c082207dd7e8063949c2ff5b1ed14daf (diff)
check for git
-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