minstall: Always remove destination file before (re-)creating it.

This avoids issues with overwriting files that are being used.
This commit is contained in:
Michel Dänzer
2006-12-11 17:36:35 +01:00
parent d7b24fec24
commit d71a5647a3

View File

@@ -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"`