From f90338f45f267b0f011cf26972bed6ae39c8bb6f Mon Sep 17 00:00:00 2001 From: minoplhy Date: Tue, 9 Jul 2024 22:39:17 +0700 Subject: [PATCH] nginx_build_script: enhance: add comments and update README --- nginx_build_script/README.md | 12 ++++++++++++ nginx_build_script/build.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/nginx_build_script/README.md b/nginx_build_script/README.md index 10535b5..a43b5e3 100644 --- a/nginx_build_script/README.md +++ b/nginx_build_script/README.md @@ -36,11 +36,23 @@ while [ ${#} -gt 0 ]; do ;; esac ;; + --nginx-tag=* ) + NGINX_TAG="${1#*=}" # Specify Nginx Mercurial Tag + case $NGINX_TAG in + "") + echo "ERROR: --nginx-tag= is empty!" + exit 1 + ;; + *) + ;; + esac + ;; *) ;; esac shift done + ``` #### Note : diff --git a/nginx_build_script/build.sh b/nginx_build_script/build.sh index b9da7f1..8f71eb7 100644 --- a/nginx_build_script/build.sh +++ b/nginx_build_script/build.sh @@ -22,7 +22,7 @@ while [ ${#} -gt 0 ]; do esac ;; --nginx-tag=* ) - NGINX_TAG="${1#*=}" + NGINX_TAG="${1#*=}" # Specify Nginx Mercurial Tag case $NGINX_TAG in "") echo "ERROR: --nginx-tag= is empty!"