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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user