param -w check for dir not file

This commit is contained in:
Asif Bacchus 2019-05-24 21:17:35 -06:00
parent 658a8c0605
commit 8bb09334d6

View File

@ -156,7 +156,7 @@ while [ $# -gt 0 ]; do
-w|--webroot) -w|--webroot)
# path to webroot (copy 503) # path to webroot (copy 503)
if [ -n "$2" ]; then if [ -n "$2" ]; then
if [ -f "$2" ]; then if [ -d "$2" ]; then
webroot="${2%/}" webroot="${2%/}"
shift shift
else else