diff options
Diffstat (limited to '')
-rwxr-xr-x | deploy.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash command -v find >/dev/null 2>&1 || { echo >&2 "I require find but it's not installed. Aborting."; exit 1; } command -v xargs >/dev/null 2>&1 || { echo >&2 "I require xargs but it's not installed. Aborting."; exit 1; } @@ -15,7 +15,7 @@ if [ `git rev-parse --verify origin/master` != `git rev-parse --verify master` ] exit 2 fi -if git diff --exit-code >/dev/null || git diff --cached --exit-code >/dev/null; then +if ! (git diff --exit-code >/dev/null || git diff --cached --exit-code >/dev/null); then echo "You have uncomitted changes. They would not be deployed. aborting" exit 2 fi |