Strip any trailing slashes from webroot input

This commit is contained in:
Asif Bacchus 2018-09-30 22:22:48 -06:00
parent 0802b00a59
commit d8ed05ae08

View File

@ -193,7 +193,7 @@ while getopts ':l:n:v5:w:' PARAMS; do
;; ;;
w) w)
# path to webserver webroot to copy 503 error page # path to webserver webroot to copy 503 error page
webroot="${OPTARG}" webroot="${OPTARG%/}"
;; ;;
?) ?)
# unrecognized parameters trigger scriptHelp # unrecognized parameters trigger scriptHelp