minstall: Always remove destination file before (re-)creating it.
This avoids issues with overwriting files that are being used.
This commit is contained in:
@@ -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"`
|
||||
|
Reference in New Issue
Block a user