diff options
author | Case Duckworth | 2023-01-06 16:21:23 -0600 |
---|---|---|
committer | Case Duckworth | 2023-01-06 16:21:23 -0600 |
commit | c294b4365be9ebdf1b62d204aa5989f15df8a4ab (patch) | |
tree | af0be9049c57bb9fa69bbd705c1153e6f55460b4 | |
parent | Add gencheckglob() (diff) | |
download | vienna-c294b4365be9ebdf1b62d204aa5989f15df8a4ab.tar.gz vienna-c294b4365be9ebdf1b62d204aa5989f15df8a4ab.zip |
Deal with empty sites
-rwxr-xr-x | vienna | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vienna b/vienna index 3d6a4a3..62e3062 100755 --- a/vienna +++ b/vienna | |||
@@ -274,8 +274,13 @@ gencheckglob() { # gencheckglob PAGE... | |||
274 | # | 274 | # |
275 | # Returns success if there's more than one argument (i.e., the glob worked), | 275 | # Returns success if there's more than one argument (i.e., the glob worked), |
276 | # or failure if there's one argument of the pattern *.$PAGE_RAW_EXT. | 276 | # or failure if there's one argument of the pattern *.$PAGE_RAW_EXT. |
277 | [ $# -gt 1 ] && return 0 | 277 | if [ $# -gt 1 ]; then |
278 | [ "$1" = "*.$PAGE_RAW_EXT" ] && return 1 | 278 | return 0 |
279 | elif [ "$1" = "*.$PAGE_RAW_EXT" ]; then | ||
280 | return 1 | ||
281 | else | ||
282 | return 0 | ||
283 | fi | ||
279 | } | 284 | } |
280 | 285 | ||
281 | genpage() { # genpage PAGE... | 286 | genpage() { # genpage PAGE... |