From aca4666d7191e582903ca0ad47a46a59b0fa0a89 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 17 Jun 2020 11:12:50 -0400 Subject: fix local issue links, and use .dir names 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. --- fetch-images.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fetch-images.sh') 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 -- cgit