Fixed broken script
This commit is contained in:
@ -5,9 +5,9 @@
|
|||||||
# build the blog files
|
# build the blog files
|
||||||
cd ../blog
|
cd ../blog
|
||||||
CONTENTNUM=$(ls content-* | wc -l )
|
CONTENTNUM=$(ls content-* | wc -l )
|
||||||
for i in {0..$CONTENTNUM}
|
for ((i=0;i<=$CONTENTNUM;i++))
|
||||||
do
|
do
|
||||||
cat filehead "content-$(printf \"%03d\" $i)" "quote-$(printf \"%03d\" $i)" > blog-00$i
|
cat filehead "content-$(printf %03d $i)" "quote-$(printf %03d $i)" > blog-00$i
|
||||||
done
|
done
|
||||||
rm filehead content* quote* .blog.*
|
rm filehead content* quote* .blog.*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user