1
0
mirror of synced 2026-01-12 00:42:56 +00:00

Switch comparison of timestamp tocraeted file to ensure that when the times are equal it is counted as success and not failure. Remove two second wait from loadup-mid-from-init, which was a previous attempt to solve same issue.

This commit is contained in:
Frank Halasz 2023-08-13 21:13:48 -07:00
parent 3ed4d52f53
commit 41b5870164
2 changed files with 4 additions and 7 deletions

View File

@ -9,9 +9,6 @@ fi
loadup_start
# wait to make sure timestamp ages enough since this run-medley is very short
sleep 2
cat >"${cmfile}" <<"EOF"
"
(MOVD? (QUOTE NILL) (QUOTE PROMPTPRINT))

View File

@ -54,13 +54,13 @@ loadup_start () {
loadup_finish () {
local exit_code
rm -f "${cmfile}"
if [ "${LOADUP_WORKDIR}/${1}" -nt "${LOADUP_WORKDIR}"/loadup.timestamp ];
if [ "${LOADUP_WORKDIR}"/loadup.timestamp -nt "${LOADUP_WORKDIR}/${1}" ];
then
echo "+++++ SUCCESS +++++"
exit_code=0
else
echo "----- FAILURE -----"
exit_code=1
else
echo "+++++ SUCCESS +++++"
exit_code=0
fi
echo "..... files created ....."
shift;