about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-07-26 05:25:31 -0400
committerCharadon <dev@iotib.net>2022-07-26 05:25:31 -0400
commit78462c3cde93bc028b23369203f78ef080e3fdee (patch)
tree6d21487c0dc2a4b513879b3006bbcc3fd212a6e3
parent3b26abf2c36a8097ec54eb25afe8f3030759ec29 (diff)
downloaddscip-78462c3cde93bc028b23369203f78ef080e3fdee.tar.gz
Fixed issue where script would fail due to LAST_COMMIT not being declared.
-rwxr-xr-xdscip2
1 files changed, 2 insertions, 0 deletions
diff --git a/dscip b/dscip
index 2b9e254..d66be1f 100755
--- a/dscip
+++ b/dscip
@@ -100,6 +100,8 @@ run () {
 	mkdir -p "$WORKING_DIRECTORY"
 	cd "$WORKING_DIRECTORY"
 
+	LAST_COMMIT=""
+
 	# Loads last commit hash if it exists. # 
 	if [ -f "$WORKING_DIRECTORY/LAST_COMMIT" ]; then
 		LAST_COMMIT="$(cat "$WORKING_DIRECTORY/LAST_COMMIT")"
0' href='#n130'>130 131 132 133 134 135 136