From d8ed05ae08ad3569359487e3b4c686ff4b9abb6d Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 30 Sep 2018 22:22:48 -0600 Subject: [PATCH] Strip any trailing slashes from webroot input --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 0a35984..e4a9785 100755 --- a/backup.sh +++ b/backup.sh @@ -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