Fix some small stuff
This commit is contained in:
@ -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")"
|
||||
|
Reference in New Issue
Block a user