Fix to allow the errexit option (bash -e)

This commit is contained in:
Laurent Rineau
2021-10-18 16:34:30 +02:00
parent bdec97bccb
commit 1ad762e082
@@ -114,8 +114,7 @@ download_latest()
abort_if_latest_already_tested()
{
if [ -r "RELEASE_NR" ]; then
cmp LATEST RELEASE_NR >> "${ACTUAL_LOGFILE}"
if [ ! ${?} != 0 ]; then
if cmp LATEST RELEASE_NR >> "${ACTUAL_LOGFILE}"; then
log "${ACTUAL_LOGFILE}" "This release has already been tested."
rm -f "$LOCK_FILE";
exit 1;