diff options
author | Charadon <dev@iotib.net> | 2022-07-26 05:25:31 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-07-26 05:25:31 -0400 |
commit | 78462c3cde93bc028b23369203f78ef080e3fdee (patch) | |
tree | 6d21487c0dc2a4b513879b3006bbcc3fd212a6e3 | |
parent | 3b26abf2c36a8097ec54eb25afe8f3030759ec29 (diff) | |
download | dscip-78462c3cde93bc028b23369203f78ef080e3fdee.tar.gz |
Fixed issue where script would fail due to LAST_COMMIT not being declared.
-rwxr-xr-x | dscip | 2 |
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")" |