diff options
-rw-r--r-- | templates/pmwiki.sh.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/pmwiki.sh.erb b/templates/pmwiki.sh.erb index e22870b..7769dcd 100644 --- a/templates/pmwiki.sh.erb +++ b/templates/pmwiki.sh.erb @@ -55,7 +55,7 @@ function pmwiki_upgrade { # Copy files for file in .htaccess index.php farmconfig.php local config.php wiki.d; do - if [ -f "pmwiki-$old/$file" ]; then + if [ -e "pmwiki-$old/$file" ]; then cp -a pmwiki-$old/$file pmwiki-$new/ fi done @@ -80,7 +80,7 @@ function pmwiki_upgrade { # Main procedure if [ -z "$1" ]; then - echo "Usage: `basename $0` <deploy|update|upgrade> [arguments]" + echo "Usage: `basename $0` <deploy|upgrade> [arguments]" exit 1 elif [ "$1" == "deploy" ]; then shift |