diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_content.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh index 97f57a3..41c2a4b 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh | |||
@@ -178,10 +178,15 @@ handle () { | |||
178 | fi | 178 | fi |
179 | } | 179 | } |
180 | 180 | ||
181 | mdfilter="" | ||
182 | if [ "$LIVE" != true ]; then | ||
183 | mdfilter="! -name _*.md" | ||
184 | fi | ||
185 | |||
181 | if [ -z "$1" ]; then | 186 | if [ -z "$1" ]; then |
182 | find "$CONTENT_DIR" \ | 187 | find "$CONTENT_DIR" \ |
183 | -type f \ | 188 | -type f \ |
184 | ! -name "_*.md" \ | 189 | $mdfilter \ |
185 | | while read file_in | 190 | | while read file_in |
186 | do | 191 | do |
187 | handle "$file_in" | 192 | handle "$file_in" |
@@ -190,7 +195,7 @@ elif [ "$1" = "all_md" ]; then | |||
190 | find "$CONTENT_DIR" \ | 195 | find "$CONTENT_DIR" \ |
191 | -type f \ | 196 | -type f \ |
192 | -name "*.md" \ | 197 | -name "*.md" \ |
193 | ! -name "_*.md" \ | 198 | $mdfilter \ |
194 | | while read file_in | 199 | | while read file_in |
195 | do | 200 | do |
196 | handle "$file_in" | 201 | handle "$file_in" |