This commit is contained in:
Pfeil, Scott Robert 2021-06-30 12:38:57 -04:00
parent 6808076d8d
commit 00a29ccc5d

View File

@ -54,7 +54,11 @@ if [[ -z "$CHECKSUM" ]]; then
exit_with_error "No Checksum found in json: ${JSON}"
fi
echo "Remote checksum ${CHECKSUM}"
OLDCHECKSUM=$(cat "${VERSIONFILE}" 2>/dev/null)
if [[ -f "${VERSIONFILE}" ]]; then
OLDCHECKSUM=$(cat "${VERSIONFILE}")
else
OLDCHECKSUM="none"
fi
echo "Local checksum ${OLDCHECKSUM}"
#get new framework if no original framework, no local checksum, or remote checksum is different from local.