diff options
author | B Stack <bgstack15@gmail.com> | 2020-06-17 11:12:50 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-06-17 11:12:50 -0400 |
commit | aca4666d7191e582903ca0ad47a46a59b0fa0a89 (patch) | |
tree | 6abf882870b0d261206ce2df2f65a5eca3ae990b /fetch-images.sh | |
parent | add minor fixes and major image fixes (diff) | |
download | glip-master.tar.gz glip-master.tar.bz2 glip-master.zip |
Munge any links to local git issues to this new format.
Use hidden directories at the top level so the web server autoindex
will not list them.
Diffstat (limited to 'fetch-images.sh')
-rwxr-xr-x | fetch-images.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fetch-images.sh b/fetch-images.sh index bec3a6f..604b8ef 100755 --- a/fetch-images.sh +++ b/fetch-images.sh @@ -26,6 +26,8 @@ echo "${orig_src}" | while read line ; do getpath="${line}" echo "${getpath}" | grep -q -E "https?:\/\/" || getpath="${INSERVER}${getpath}" temp="$( echo "${line}" | sed -r -e "s@${INSERVERREGEX}@@g" -e 's@/-/@/@g' )" + temp="${temp##/}" + temp=".$( echo "${temp}" | sed -r -e 's/^\.+//g;' )" outdir="$( dirname "${temp}" | sed -r -e 's@^/@@' )" test ! -d "${outdir}" && mkdir -p "${outdir}" targetfile="${temp%%\?*}" # for output file itself remove the question mark which is normally width attribute |