-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix download error with imagefilename containing dots.
- Loading branch information
Thomas Schmitt
committed
Aug 18, 2022
1 parent
31b6a85
commit 7f15ee4
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# ssd/4k/8k support - [email protected] 06.11.2012 anpassung fuer 2.0.12 | ||
# | ||
# [email protected] | ||
# 20220617 | ||
# 20220818 | ||
# GPL v3 | ||
# | ||
|
||
|
@@ -2631,7 +2631,7 @@ download_img_if_changed(){ | |
localmode && return 0 | ||
local server="$1" | ||
local imagefile="$2" | ||
local imagebase="$(echo "$imagefile" | awk -F\. '{print $1}')" | ||
local imagebase="$(basename "$imagefile" | sed 's/\(.*\)\..*/\1/')" | ||
local subdir="images/$imagebase/" | ||
local infofile="${imagefile}.info" | ||
local dltype="$3" | ||
|