projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
16934bd
)
Use true binary without leading /bin/ in preinst script
author
Michael Prokop
<mika@grml.org>
Tue, 28 Jul 2009 15:53:05 +0000
(17:53 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 28 Jul 2009 15:53:05 +0000
(17:53 +0200)
debian/preinst
patch
|
blob
|
history
diff --git
a/debian/preinst
b/debian/preinst
index
06a7917
..
ec6b7a9
100755
(executable)
--- a/
debian/preinst
+++ b/
debian/preinst
@@
-4,7
+4,6
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sam Sep 15 10:36:46 CEST 2007 [mika]
################################################################################
set -e
################################################################################
set -e
@@
-28,7
+27,7
@@
case "$1" in
# we don't lose any files...
for file in /etc/zsh/zlogin /etc/zsh/zprofile /etc/zsh/zshenv /etc/zsh/zshrc \
/etc/zsh/zlogout /etc/vim/vimrc; do
# we don't lose any files...
for file in /etc/zsh/zlogin /etc/zsh/zprofile /etc/zsh/zshenv /etc/zsh/zshrc \
/etc/zsh/zlogout /etc/vim/vimrc; do
- [ -e "$file".original ] || cp -f "$file" "${file}.tmp.$TMP" 2>/dev/null ||
/bin/
true
+ [ -e "$file".original ] || cp -f "$file" "${file}.tmp.$TMP" 2>/dev/null || true
# [ -e "$file".dpkg-new ] && cp -f "$file".dpkg-new "${file}.tmp.$TMP"
backup_conffile $file && \
[ -f "$file" ] && rm $file && \
# [ -e "$file".dpkg-new ] && cp -f "$file".dpkg-new "${file}.tmp.$TMP"
backup_conffile $file && \
[ -f "$file" ] && rm $file && \