- if [[ "$(cat mastofe.timestamp)" == "${last_modified}" ]]
- then
- echo "MastoFE is up-to-date, exiting…"
- exit 0
- fi
+ echo "ERROR: Couldn't get the modification date of the latest build archive, maybe it expired, exiting..."
+ exit 1
+fi
+
+if [ -e mastofe.timestamp ] && [ "$(cat mastofe.timestamp)" = "${last_modified}" ]
+then
+ echo "MastoFE is up-to-date, exiting..."
+ exit 0