From: Steven Baltakatei Sandoval Date: Tue, 11 Apr 2023 17:19:47 +0000 (+0000) Subject: chore(user/mw_create_redirect_day_month.sh):Add TODO comment X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/98c9cec82e40000f44886b87a01307283b00e3e3?ds=inline chore(user/mw_create_redirect_day_month.sh):Add TODO comment --- diff --git a/user/mw_create_redirect_day_month.sh b/user/mw_create_redirect_day_month.sh index 1c4f9fe..8d788c1 100755 --- a/user/mw_create_redirect_day_month.sh +++ b/user/mw_create_redirect_day_month.sh @@ -3,7 +3,7 @@ # Usage: script.sh [year] # Input: arg1: year (string) # Output: none -# Version: 0.0.1 +# Version: 0.1.0 (TODO: Support expanded year formats (i.e. ±YYYYYY-mm-dd) # Example: Running 'mw_create_redirect_day_month.sh 2022' creates # directory 'wikicode' in working directory. It then populates it @@ -71,7 +71,7 @@ main() { if [[ $# -ne 1 ]]; then die "FATAL:Invalid number of arguments:$#"; fi; ## check year - pattern='^[0-9]{4}$'; + pattern='^[0-9]{4}$'; if [[ ! $year =~ $pattern ]]; then die "FATAL:Not a 4-digit year."; fi; if [[ ! $year -gt 1583 ]]; then die "FATAL:Not a gregorian calendar year."; fi;