Shellcheck
This commit is contained in:
@ -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 |
|
||||
|
Reference in New Issue
Block a user