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