Implement -d option

This commit is contained in:
Maciej Ziaja 2020-02-23 13:05:50 +01:00
parent 68c3878c8e
commit 3b5a05be27
1 changed files with 1 additions and 2 deletions

3
ssb
View File

@ -166,7 +166,6 @@ function gen_template
function get_posts function get_posts
{ {
h
if [ "$RECURSE_POSTS" = false ]; then if [ "$RECURSE_POSTS" = false ]; then
DEPTH_LIMITER="-maxdepth 1" DEPTH_LIMITER="-maxdepth 1"
fi fi
@ -217,7 +216,7 @@ shift `expr $OPTIND - 1`
pages="$@" pages="$@"
[ -z "$pages" ] && echo No markdown pages given to render && exit 1 [ -z "$pages" ] && echo No markdown pages given to render && exit 1
posts=`get_posts` [ $DISABLE_POSTS != true ] && posts=`get_posts`
md_files="$pages $posts" md_files="$pages $posts"
make_html_files $md_files make_html_files $md_files