1
0
mirror of synced 2026-01-25 20:06:44 +00:00

Handle case where files already exist in LOADUP_WORKDIR - show only the newly created files - not the old ones

This commit is contained in:
Frank Halasz
2023-08-01 23:41:39 -07:00
committed by Larry Masinter
parent 1c077d1b3d
commit b0ec2476d5

View File

@@ -37,7 +37,13 @@ loadup_finish () {
shift;
for f in ${*};
do
ls -l "${LOADUP_WORKDIR}"/$f 2>/dev/null
for ff in $(ls -1 "${LOADUP_WORKDIR}"/$f);
do
if [ "${ff}" -nt "${LOADUP_WORKDIR}"/loadup.timestamp ];
then
ls -l ${ff} 2>/dev/null | grep -v "^.*~[0-9]\+~$"
fi
done
done
echo "<<<<< END ${script_name}"
echo ""