aboutsummaryrefslogtreecommitdiffstats
path: root/SOURCE/CORE/core-backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCE/CORE/core-backup.sh')
-rw-r--r--SOURCE/CORE/core-backup.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/SOURCE/CORE/core-backup.sh b/SOURCE/CORE/core-backup.sh
index 7a0b6d1..f03782e 100644
--- a/SOURCE/CORE/core-backup.sh
+++ b/SOURCE/CORE/core-backup.sh
@@ -73,9 +73,7 @@ backup_restore() {
fi
# restoring git repo subdirectory
if [ -d $BACKUPDIR/.git ]; then
- if [ /bin/ls -A ${BASEDIR}/.git ]; then
- rm -rf ${BASEDIR}/.git
- fi
+ rm -rf "${BASEDIR}/.git"
cp -r --verbose ${BACKUPDIR}/.git ${BASEDIR}/
fi
;;