Fix some small stuff

This commit is contained in:
2024-01-23 23:16:27 +08:00
parent 090211fd46
commit a58258034a
4 changed files with 4 additions and 2 deletions

View File

@ -7,10 +7,11 @@ cd ../blog
POSTNUM=$( ls -l content-* | wc -l )
QUOTENUM=$( ls -l quote-* | wc -l )
if [[ $POSTNUM -gt $QUOTENUM ]];then
CURRNUM=$POSTNUM
NUM=$POSTNUM
else
CURRNUM=$QUOTENUM
NUM=$QUOTENUM
fi
CURRNUM=$(( $NUM -2 ))
# Create post and quote from template
NEWPOSTNAME="content-$(printf %03d "$CURRNUM")"