From: Michael Prokop Date: Tue, 28 Jul 2009 15:53:05 +0000 (+0200) Subject: Use true binary without leading /bin/ in preinst script X-Git-Tag: v0.3.73~2 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=c738dbf96c5624d98c62697d87dc41dd477259ca;hp=16934bdacf66efc5f477d0986e026a68ff79830a;p=grml-etc-core.git Use true binary without leading /bin/ in preinst script --- diff --git a/debian/preinst b/debian/preinst index 06a7917..ec6b7a9 100755 --- a/debian/preinst +++ b/debian/preinst @@ -4,7 +4,6 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 && \