Fixed bug with includes.

This commit is contained in:
Nicolás Ortega Froysa 2020-10-26 09:42:41 +01:00
parent 5e99d49dee
commit 8f82ab261a

View File

@ -40,7 +40,10 @@ 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)"
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 fi
#inc_file="$(sed "$i!d" $1)" #inc_file="$(sed "$i!d" $1)"
inc_file=${i#*:} inc_file=${i#*:}