Skip to content

Commit

Permalink
copy download links file even if downloader runs out of images
Browse files Browse the repository at this point in the history
- fixes #15 - thanks @rayjs!
  • Loading branch information
teracow committed Jan 2, 2018
1 parent 77c5d7b commit 2b33293
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions googliser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
###############################################################################
# googliser.sh
#
# (C)opyright 2016-2017 Teracow Software
# (C)opyright 2016-2018 Teracow Software
#
# If you find this script useful, please send me an email to let me know. :)
# teracow@gmail.com
Expand Down Expand Up @@ -70,7 +70,7 @@ user_parameters_raw="$@"
Init()
{

local script_date='2017-12-17'
local script_date='2018-01-03'
script_file='googliser.sh'
script_name="${script_file%.*}"
local script_details_colour="$(ColourTextBrightWhite "$script_file") - $script_date PID:[$$]"
Expand Down Expand Up @@ -871,7 +871,7 @@ ProcessQuery()
fi

# build thumbnail gallery even if fail_limit was reached
if [[ $exitcode -eq 0 ]] || [[ $exitcode -eq 5 ]]; then
if [[ $exitcode -eq 0 || $exitcode -eq 5 ]]; then
if [[ $create_gallery = true ]]; then
BuildGallery
if [[ $? -gt 0 ]]; then
Expand All @@ -888,7 +888,7 @@ ProcessQuery()
fi

# copy links file into target directory if possible. If not, then copy to current directory.
if [[ $exitcode -eq 0 ]]; then
if [[ $exitcode -eq 0 || $exitcode -eq 5 ]]; then
if [[ $save_links = true ]]; then
if [[ $target_path_created = true ]]; then
cp -f "$imagelinks_pathfile" "${target_path}/${imagelinks_file}"
Expand Down

0 comments on commit 2b33293

Please sign in to comment.