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