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:
parent
3ed4d52f53
commit
41b5870164
@ -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))
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user