mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
use cp -p
so permissions get updated
This commit is contained in:
parent
31c8e63e74
commit
2765054c9f
1 changed files with 2 additions and 2 deletions
4
update
4
update
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue