aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-11 00:31:51 +0800
committerAaron LI <aly@aaronly.me>2018-03-11 00:31:51 +0800
commitdab6814f151398422d973f362b42f106c232019d (patch)
treee1791fd690ac9e8c007b49b08fba2d01de82c8bc
parentc976d15c3d46ff955b514319d2a812be05fb03da (diff)
downloaddfly-update-dab6814f151398422d973f362b42f106c232019d.tar.bz2
upgrade_system(): Ignore files with __new__ suffix
-rwxr-xr-xdfly-update4
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