Fixed bug with includes.
This commit is contained in:
parent
5e99d49dee
commit
8f82ab261a
5
sssg.sh
5
sssg.sh
@ -40,7 +40,10 @@ function parse {
|
||||
sed -n "1,$end_line{p}" $1 >> _site/$1
|
||||
else
|
||||
start_line="$(expr ${last_find%%:*} + 1)"
|
||||
sed -n "$start_line,$end_line{p}" $1 >> _site/$1
|
||||
if [ $start_line -le $end_line ]
|
||||
then
|
||||
sed -n "$start_line,$end_line{p}" $1 >> _site/$1
|
||||
fi
|
||||
fi
|
||||
#inc_file="$(sed "$i!d" $1)"
|
||||
inc_file=${i#*:}
|
||||
|
Loading…
Reference in New Issue
Block a user