mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Fixed return code of wget
This commit is contained in:
parent
345135acd8
commit
5e48849740
1 changed files with 3 additions and 3 deletions
|
@ -232,8 +232,8 @@ function funcGetSeriesIdFromTvdb {
|
||||||
wget_running=true;
|
wget_running=true;
|
||||||
if $debug; then echo -e "\033[36mwget \"$series_db\" -O \"$wget_file\"\033[37m"; fi;
|
if $debug; then echo -e "\033[36mwget \"$series_db\" -O \"$wget_file\"\033[37m"; fi;
|
||||||
wget "$series_db" -O "$wget_file" -o /dev/null
|
wget "$series_db" -O "$wget_file" -o /dev/null
|
||||||
wget_running=false;
|
|
||||||
error=$?
|
error=$?
|
||||||
|
wget_running=false;
|
||||||
if [ $error -ne 0 ]; then
|
if [ $error -ne 0 ]; then
|
||||||
eecho -e "\t\t\tDownloading $series_db failed \(Exit code: $error\)!"
|
eecho -e "\t\t\tDownloading $series_db failed \(Exit code: $error\)!"
|
||||||
fi
|
fi
|
||||||
|
@ -303,8 +303,8 @@ function funcGetEPG {
|
||||||
wget_running=true;
|
wget_running=true;
|
||||||
if $debug; then echo -e "\033[36mwget \"$epg_csv\" -O \"$wget_file\"\033[37m"; fi;
|
if $debug; then echo -e "\033[36mwget \"$epg_csv\" -O \"$wget_file\"\033[37m"; fi;
|
||||||
wget "$epg_csv" -O "$wget_file" -o /dev/null # Download the csv
|
wget "$epg_csv" -O "$wget_file" -o /dev/null # Download the csv
|
||||||
wget_running=false;
|
|
||||||
error=$?
|
error=$?
|
||||||
|
wget_running=false;
|
||||||
if [ $error -ne 0 ]; then
|
if [ $error -ne 0 ]; then
|
||||||
eecho "Downloading $epg_csv failed (Exit code: $error)!"
|
eecho "Downloading $epg_csv failed (Exit code: $error)!"
|
||||||
logNexit 40
|
logNexit 40
|
||||||
|
@ -377,8 +377,8 @@ function funcDownloadEpisodesFile {
|
||||||
wget_running=true;
|
wget_running=true;
|
||||||
if $debug; then echo -e "\033[36mwget \"$episode_db\" -O \"$wget_file\"\033[37m"; fi;
|
if $debug; then echo -e "\033[36mwget \"$episode_db\" -O \"$wget_file\"\033[37m"; fi;
|
||||||
wget $episode_db -O "$wget_file" -o /dev/null
|
wget $episode_db -O "$wget_file" -o /dev/null
|
||||||
wget_running=false;
|
|
||||||
error=$?
|
error=$?
|
||||||
|
wget_running=false;
|
||||||
if [ $error -ne 0 ]; then
|
if [ $error -ne 0 ]; then
|
||||||
eecho "Downloading $episode_db failed (Exit code: $error)!"
|
eecho "Downloading $episode_db failed (Exit code: $error)!"
|
||||||
logNexit 41
|
logNexit 41
|
||||||
|
|
Loading…
Reference in a new issue