From dab6814f151398422d973f362b42f106c232019d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 11 Mar 2018 00:31:51 +0800 Subject: upgrade_system(): Ignore files with __new__ suffix --- dfly-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dfly-update') diff --git a/dfly-update b/dfly-update index c551084..6f59199 100755 --- a/dfly-update +++ b/dfly-update @@ -492,7 +492,7 @@ upgrade_system() { fi done echo " => Renaming changed files while deleting others ..." - find /etc/ -type f | while read -r file; do + find -s /etc/ -not -name "*.${NEW_SUF}" -type f | while read -r file; do file_new="${etcdir}/${file#/etc/}" if [ -f "${file_new}" ]; then echo -n " * ${file_new} " @@ -501,7 +501,7 @@ upgrade_system() { echo "(same)" else mv "${file_new}" "${file_new}.${NEW_SUF}" - echo "[NEW]" + echo "[NEW-VERSION]" fi fi done -- cgit v1.2.2