Use true binary without leading /bin/ in preinst script
authorMichael Prokop <mika@grml.org>
Tue, 28 Jul 2009 15:53:05 +0000 (17:53 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 28 Jul 2009 15:53:05 +0000 (17:53 +0200)
debian/preinst

index 06a7917..ec6b7a9 100755 (executable)
@@ -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.
-# Latest change: Sam Sep 15 10:36:46 CEST 2007 [mika]
 ################################################################################
 
 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
-               [ -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 && \