From 78544fe088f0868e59d85ec4729bc14368fd7eec Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sun, 2 Apr 2023 14:22:57 -0500 Subject: check for git --- deploy.sh | 7 +++++-- 1 file 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 -- cgit v1.2.3