diff options
author | Matt Singleton <matt@xcolour.net> | 2023-04-02 14:22:57 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2023-04-02 14:22:57 -0500 |
commit | 78544fe088f0868e59d85ec4729bc14368fd7eec (patch) | |
tree | da5d42e5ae4b2d82c73e2e3708bee250a890f22f | |
parent | b483c295c082207dd7e8063949c2ff5b1ed14daf (diff) |
check for git
-rwxr-xr-x | deploy.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |