From 8bb09334d64fbae9e87aa7a748fc255cbe2071f0 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 24 May 2019 21:17:35 -0600 Subject: [PATCH] param -w check for dir not file --- backup_new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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