fix mkrss file path

This commit is contained in:
Yann Esposito (Yogsototh) 2019-09-30 21:01:46 +02:00
parent 8abeacb211
commit 277358c2b5
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -48,8 +48,9 @@ tmpdir=$(mktemp -d)
typeset -a dates typeset -a dates
dates=( ) dates=( )
for fic in $postsdir/**/*.html; do for fic in $postsdir/**/*.html; do
blogfile="$(echo "$fic"|sed 's#^'$postsdir'/##')" postfile="$(echo "$fic"|sed 's#^'$postsdir'/##')"
printf "%-30s" $blogfile blogfile="$(echo "$fic"|sed 's#^'$webdir'/##')"
printf "%-30s" $postfile
xfic="$tmpdir/$fic.xml" xfic="$tmpdir/$fic.xml"
mkdir -p $(dirname $xfic) mkdir -p $(dirname $xfic)
hxclean $fic > $xfic hxclean $fic > $xfic