From 286bc373d176f566adc26f14fefb0e61331b2161 Mon Sep 17 00:00:00 2001 From: Silverwizard Date: Wed, 28 Aug 2019 16:04:38 -0400 Subject: [PATCH] Fixed the issues with new directory structure --- tohtml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tohtml.sh b/tohtml.sh index 58f2fc1..052b0bf 100644 --- a/tohtml.sh +++ b/tohtml.sh @@ -1,4 +1,4 @@ -for char in `ls $1` +for char in `find $1 -maxdepth 1 -type f` do - markdown $1/$char > $1/`echo $char |sed 's/.md$/.html/'` + markdown $char > `echo $char |sed 's/.md$/.html/'` done