Fixed error level to cli

This commit is contained in:
Frederik Baerentsen 2020-06-24 09:02:47 +02:00
parent 05f7306192
commit 3693dcd36a

View File

@ -99,14 +99,14 @@ do
filename=$tFilename filename=$tFilename
if [ -f "$downloadFolder/$filename" ]; then if [ -f "$downloadFolder/$filename" ]; then
echo "-> $tID exists. Skipping..."
if [[ $error_level = 2 ]]; then if [[ $error_level = 2 ]]; then
echo "-> $tID exists. Skipping..."
echo "$filename exists." >> $logfile echo "$filename exists." >> $logfile
fi fi
else else
if [[ "$tDESC" = "{No longer listed at LEGO.com}" ]] ; then if [[ "$tDESC" = "{No longer listed at LEGO.com}" ]] ; then
echo "-> $tID is not available. Skipping..."
if [[ $error_level = 1 || $error_level = 2 ]]; then if [[ $error_level = 1 || $error_level = 2 ]]; then
echo "-> $tID is not available. Skipping..."
echo "$filename is not available." >> $logfile echo "$filename is not available." >> $logfile
fi fi
else else