From 06c5be320b0ee5842584224e26e379cd8c517421 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 16 Feb 2010 19:08:55 -0200 Subject: also copies wiki.d --- templates/pmwiki.sh.erb | 4 ++-- 1 file 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` [arguments]" + echo "Usage: `basename $0` [arguments]" exit 1 elif [ "$1" == "deploy" ]; then shift -- cgit v1.2.3