From 419f07dd2ce092d4030018f7051b5e6395f8dc96 Mon Sep 17 00:00:00 2001 From: Clement Date: Mon, 21 Mar 2022 01:11:19 +0800 Subject: [PATCH] Shellcheck --- scripts/build-website.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build-website.sh b/scripts/build-website.sh index b721056..9e24c3e 100755 --- a/scripts/build-website.sh +++ b/scripts/build-website.sh @@ -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 '' \ + "$( 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 |