diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-11 00:31:51 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-11 00:31:51 +0800 |
commit | dab6814f151398422d973f362b42f106c232019d (patch) | |
tree | e1791fd690ac9e8c007b49b08fba2d01de82c8bc | |
parent | c976d15c3d46ff955b514319d2a812be05fb03da (diff) | |
download | dfly-update-dab6814f151398422d973f362b42f106c232019d.tar.bz2 |
upgrade_system(): Ignore files with __new__ suffix
-rwxr-xr-x | dfly-update | 4 |
1 files changed, 2 insertions, 2 deletions
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 |