new commit

This commit is contained in:
Manuel 2023-05-11 11:10:34 +00:00
parent fc2fe25ad3
commit 1b3e5c9179
1 changed files with 34 additions and 26 deletions

View File

@ -32,8 +32,14 @@ cd ${WorkingDir}
# Timing matters, don't destroy the old one without a replacement.
# Check for the ISO to appear and wait for things to settle.
until [ -e fusato/*.iso ]
do ((++_break))
[ $_break -gt $_wait ] && break || sleep 1
do
((++_break))
if [ $_break -gt $_wait ]
then
echo "Timeout waiting for ISO to appear"
break
fi
sleep 1
done
if [ ${_break} -lt ${_wait} ] ; then
@ -58,15 +64,17 @@ mv ${FileName}-sha512.checksum ${LOCATION}/${FileName}-sha512.checksum
# touch -t ${_stamp} ${LOCATION} ${LOCATION}/${FileName}*
touch ${LOCATION}/${FileName}*
# Clean the fusato folder
lb clean &
# Move the log file to the log directory.
[ ! -e ${LogDir} ] && mkdir -p ${LogDir}
mv ${OutFile} ${LogFile}
### </HouseKeeping>
else echo -e "\n\tAfter $_break seconds, ISO never appeared.\n" | tee --append ${OutFile}
else
echo -e "\n\tAfter $_break seconds, ISO never appeared.\n" | tee --append ${OutFile}
mv ${OutFile} ${LogFile}
fi
rm -r *
exit 0