From 3693dcd36aab07c800a6166a8d38609f6e00a8d2 Mon Sep 17 00:00:00 2001 From: Frederik Baerentsen Date: Wed, 24 Jun 2020 09:02:47 +0200 Subject: [PATCH] Fixed error level to cli --- lego_dl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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