param -w check for dir not file
This commit is contained in:
parent
658a8c0605
commit
8bb09334d6
@ -156,7 +156,7 @@ while [ $# -gt 0 ]; do
|
||||
-w|--webroot)
|
||||
# path to webroot (copy 503)
|
||||
if [ -n "$2" ]; then
|
||||
if [ -f "$2" ]; then
|
||||
if [ -d "$2" ]; then
|
||||
webroot="${2%/}"
|
||||
shift
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user