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=d71a5647a3ed4aadd46edfa8a031ffc87d88c5f7;p=mesa.git minstall: Always remove destination file before (re-)creating it. This avoids issues with overwriting files that are being used. --- 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"`