diff --git a/backup_new.sh b/backup_new.sh index dac9f25..5a6a43d 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -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