projects
/
carnet-tools-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb9172
)
r23: Zamjena cp_safe_file_replace sa cp_mv u cp_check_and_sed().
author
Zoran Dzelajlija
<Zoran.Dzelajlija@CARNet.hr>
Sun, 27 Mar 2005 23:54:34 +0000
(23:54 +0000)
committer
Zoran Dzelajlija
<Zoran.Dzelajlija@CARNet.hr>
Sun, 27 Mar 2005 23:54:34 +0000
(23:54 +0000)
functions.sh
patch
|
blob
|
history
diff --git
a/functions.sh
b/functions.sh
index
73d69fc
..
b0c8be6
100644
(file)
--- a/
functions.sh
+++ b/
functions.sh
@@
-183,7
+183,7
@@
cp_check_and_sed() {
[ -h "$i" ] && i=$(readlink -f "$i")
sed "$sedcmd" "$i" > "$i.dpkg-tmp"
if ! cmp -s "$i" "$i.dpkg-tmp" 2>&1 >/dev/null; then
- cp_safe_file_replace "$i.dpkg-tmp" "$i"
+ cp_mv "$i.dpkg-tmp" "$i"
else
rm "$i.dpkg-tmp"
fi