Skip to content

Commit

Permalink
Fix download error with imagefilename containing dots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schmitt committed Aug 18, 2022
1 parent 31b6a85 commit 7f15ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linbofs/usr/bin/linbo_cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# ssd/4k/8k support - [email protected] 06.11.2012 anpassung fuer 2.0.12
#
# [email protected]
# 20220617
# 20220818
# GPL v3
#

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7f15ee4

Please sign in to comment.