Shellcheck

This commit is contained in:
2022-03-21 01:11:19 +08:00
parent 941f547026
commit 419f07dd2c

View File

@ -53,7 +53,8 @@ cat \
<(
for ((i=1;i<10;i++))
do
export padint=$( printf %03d $(( CONTENTNUM -i )) )
padint=$( printf %03d $(( CONTENTNUM -i )) )
export padint
cat \
<(
head -n $(( itemlinereplace -1 )) .rss.item.template |
@ -61,12 +62,13 @@ cat \
perl -pe 's/TITLE/$ENV{title}/; s/CURRENTINT/$ENV{padint}/'
) \
<(
printf '<![CDATA['"$( \
printf '<![CDATA['"%s"']]>' \
"$(
cat content-$padint quote-$padint |
tidy -q -asxhtml |
sed '2 s/xmlns=".*"//g' |
xmllint --noblanks --xpath '//body' - \
)"']]>'
xmllint --noblanks --xpath '//body' -
)"
) \
<(
tail -n +$(( itemlinereplace +1 )) .rss.item.template |