Fix error messages on MacOS
This commit is contained in:
parent
348a1550e8
commit
873e9156ba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user