about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xvienna9
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
281genpage() { # genpage PAGE... 286genpage() { # genpage PAGE...