From: Michel Dänzer Date: Mon, 11 Dec 2006 16:36:35 +0000 (+0100) Subject: minstall: Always remove destination file before (re-)creating it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bce82efe1fc57f88dc050f5c13508b2e442b7a0d;p=mesa.git minstall: Always remove destination file before (re-)creating it. This avoids issues with overwriting files that are being used. (cherry picked from d71a5647a3ed4aadd46edfa8a031ffc87d88c5f7 commit) --- diff --git a/bin/minstall b/bin/minstall index 9795263f9f1..210c2758d37 100755 --- a/bin/minstall +++ b/bin/minstall @@ -65,6 +65,7 @@ if [ $# -ge 2 ] ; then elif [ -f "$FILE" ] ; then #echo "$FILE" is a regular file + $RM "$DEST/$FILE" cp "$FILE" "$DEST" if [ $MODE ] ; then FILE=`basename "$FILE"`