From 119c280b5a847a759536072ad86bcacd759df2df Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 5 Aug 2016 10:42:33 -0500 Subject: [PATCH] Separate creation of .orig directories from removal of files they are intended to replace. --- .sandstorm/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.sandstorm/build.sh b/.sandstorm/build.sh index 88c79a3..88123b2 100644 --- a/.sandstorm/build.sh +++ b/.sandstorm/build.sh @@ -15,8 +15,10 @@ fi rsync -a /opt/app/plugin/ /opt/app/dokuwiki/lib/plugins/sandstorm/ for p in /opt/app/dokuwiki/{conf,data,lib/plugins,lib/tpl}; do - if [ -e $p ]; then + if [ ! -e $p.orig ]; then mv $p $p.orig + fi + if [ -e $p ]; then rm -rf $p fi done