nginx_build_script: enhance: add comments and update README

This commit is contained in:
minoplhy 2024-07-09 22:39:17 +07:00
parent 42aab2a5d9
commit f90338f45f
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 13 additions and 1 deletions

View File

@ -36,11 +36,23 @@ while [ ${#} -gt 0 ]; do
;; ;;
esac esac
;; ;;
--nginx-tag=* )
NGINX_TAG="${1#*=}" # Specify Nginx Mercurial Tag
case $NGINX_TAG in
"")
echo "ERROR: --nginx-tag= is empty!"
exit 1
;;
*)
;;
esac
;;
*) *)
;; ;;
esac esac
shift shift
done done
``` ```
#### Note : #### Note :

View File

@ -22,7 +22,7 @@ while [ ${#} -gt 0 ]; do
esac esac
;; ;;
--nginx-tag=* ) --nginx-tag=* )
NGINX_TAG="${1#*=}" NGINX_TAG="${1#*=}" # Specify Nginx Mercurial Tag
case $NGINX_TAG in case $NGINX_TAG in
"") "")
echo "ERROR: --nginx-tag= is empty!" echo "ERROR: --nginx-tag= is empty!"