1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-09-19 09:44:05 -07:00

use cp -p so permissions get updated

This commit is contained in:
Connor Olding 2024-07-04 21:48:38 -07:00
parent 31c8e63e74
commit 2765054c9f

4
update
View file

@ -148,7 +148,7 @@ for d in home sh vim; do
if [ -f "_new/$f" ] && ! [ -f "$f" ]; then
warn " + $f"
cp "_new/$f" "$f"
cp -p "_new/$f" "$f"
elif ! [ -f "_new/$f" ] && [ -f "$f" ]; then
warn " - $f"
elif [ "_new/$f" -nt "$f" ]; then
@ -156,7 +156,7 @@ for d in home sh vim; do
# don't use this script when you have git!
warn " * $f"
backup "$f"
cp "_new/$f" "$f"
cp -p "_new/$f" "$f"
elif [ "_new/$f" -ot "$f" ]; then
warn " / $f"
#else warn " = $f"