about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xdscip3
1 files changed, 3 insertions, 0 deletions
diff --git a/dscip b/dscip
index a67297f..de733e7 100755
--- a/dscip
+++ b/dscip
@@ -119,6 +119,9 @@ run () {
 
 	# Loads current commit hash #
 	CURRENT_COMMIT=$(git ls-remote "$DSCIP_GITREPO" | awk "/refs\/(heads|tags)\/$DSCIP_BRANCH/{print \$1}")
+	if [ -z "$CURRENT_COMMIT" ]; then
+		return 0
+	fi
 	export CURRENT_COMMIT
 
 	# If LAST_COMMIT doesn't exist, that means it's a first run and we can go ahead and build. #