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
1 changed files with 1 additions and 1 deletions

View File

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