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