summaryrefslogtreecommitdiff
path: root/fetch-images.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-17 11:12:50 -0400
committerB Stack <bgstack15@gmail.com>2020-06-17 11:12:50 -0400
commitaca4666d7191e582903ca0ad47a46a59b0fa0a89 (patch)
tree6abf882870b0d261206ce2df2f65a5eca3ae990b /fetch-images.sh
parentadd minor fixes and major image fixes (diff)
downloadglip-aca4666d7191e582903ca0ad47a46a59b0fa0a89.tar.gz
glip-aca4666d7191e582903ca0ad47a46a59b0fa0a89.tar.bz2
glip-aca4666d7191e582903ca0ad47a46a59b0fa0a89.zip
fix local issue links, and use .dir namesHEADmaster
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-xfetch-images.sh2
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
bgstack15