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
|
echo "null" > /dev/null
|
||||||
else
|
else
|
||||||
echo "+ Video file(s) in .${format} found!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -225,7 +225,9 @@ for format in ${formatFiles} ; do
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
else
|
||||||
echo "+ Video file(s) in .${format} found!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -104,7 +104,9 @@ for format in ${formatFiles} ; do
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
else
|
||||||
echo "+ Video file(s) in .${format} found!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -225,7 +225,9 @@ for format in ${formatFiles} ; do
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
else
|
||||||
echo "+ Video file(s) in .${format} found!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -88,9 +88,12 @@ function listArchives() {
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
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!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -115,9 +115,12 @@ function listArchives() {
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
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!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -105,9 +105,12 @@ function listArchives() {
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
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!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -88,9 +88,12 @@ function listArchives() {
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "null" > /dev/null
|
echo "null" > /dev/null
|
||||||
else
|
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!"
|
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
|
fail=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user