Fix error messages on MacOS

This commit is contained in:
q3aql 2023-11-06 20:07:07 +01:00
parent 348a1550e8
commit 873e9156ba
8 changed files with 32 additions and 12 deletions

View File

@ -104,7 +104,9 @@ for format in ${formatFiles} ; do
echo "null" > /dev/null
else
echo "+ Video file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${tempFile}
cd "${1}" && ls -1 *.${format} &> /tmp/tempFile.txt
cat /tmp/tempFile.txt >> ${tempFile}
rm -rf /tmp/tempFile.txt 2> /dev/null
fail=0
fi
done

View File

@ -225,7 +225,9 @@ for format in ${formatFiles} ; do
echo "null" > /dev/null
else
echo "+ Video file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${tempFile}
cd "${1}" && ls -1 *.${format} &> /tmp/tempFile.txt
cat /tmp/tempFile.txt >> ${tempFile}
rm -rf /tmp/tempFile.txt 2> /dev/null
fail=0
fi
done

View File

@ -104,7 +104,9 @@ for format in ${formatFiles} ; do
echo "null" > /dev/null
else
echo "+ Video file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${tempFile}
cd "${1}" && ls -1 *.${format} &> /tmp/tempFile.txt
cat /tmp/tempFile.txt >> ${tempFile}
rm -rf /tmp/tempFile.txt 2> /dev/null
fail=0
fi
done

View File

@ -225,7 +225,9 @@ for format in ${formatFiles} ; do
echo "null" > /dev/null
else
echo "+ Video file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${tempFile}
cd "${1}" && ls -1 *.${format} &> /tmp/tempFile.txt
cat /tmp/tempFile.txt >> ${tempFile}
rm -rf /tmp/tempFile.txt 2> /dev/null
fail=0
fi
done

View File

@ -88,9 +88,12 @@ function listArchives() {
if [ $? -ne 0 ] ; then
echo "null" > /dev/null
else
find "${1}"/*.${format} &>> ${dirTemp}/${listCompTemp}
find "${1}"/*.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listCompTemp}
echo "+ Audio file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${dirTemp}/${listTemp}
cd "${1}" && ls -1 *.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listTemp}
rm -rf ${dirTemp}/temp.tmp 2> /dev/null
fail=0
fi
done

View File

@ -115,9 +115,12 @@ function listArchives() {
if [ $? -ne 0 ] ; then
echo "null" > /dev/null
else
find "${1}"/*.${format} &>> ${dirTemp}/${listCompTemp}
find "${1}"/*.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listCompTemp}
echo "+ File(s) in .${format} format found!"
cd "${1}" && ls -1 *.${format} &>> ${dirTemp}/${listTemp}
cd "${1}" && ls -1 *.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listTemp}
rm -rf ${dirTemp}/temp.tmp 2> /dev/null
fail=0
fi
done

View File

@ -105,9 +105,12 @@ function listArchives() {
if [ $? -ne 0 ] ; then
echo "null" > /dev/null
else
find "${1}"/*.${format} &>> ${dirTemp}/${listCompTemp}
find "${1}"/*.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listCompTemp}
echo "+ File(s) in .${format} format found!"
cd "${1}" && ls -1 *.${format} &>> ${dirTemp}/${listTemp}
cd "${1}" && ls -1 *.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listTemp}
rm -rf ${dirTemp}/temp.tmp 2> /dev/null
fail=0
fi
done

View File

@ -88,9 +88,12 @@ function listArchives() {
if [ $? -ne 0 ] ; then
echo "null" > /dev/null
else
find "${1}"/*.${format} &>> ${dirTemp}/${listCompTemp}
find "${1}"/*.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listCompTemp}
echo "+ Video file(s) in .${format} found!"
cd "${1}" && ls -1 *.${format} &>> ${dirTemp}/${listTemp}
cd "${1}" && ls -1 *.${format} &> ${dirTemp}/temp.tmp
cat ${dirTemp}/temp.tmp >> ${dirTemp}/${listTemp}
rm -rf ${dirTemp}/temp.tmp 2> /dev/null
fail=0
fi
done