summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2006-12-11 17:36:35 +0100
committerZou Nan hai <[email protected]>2006-12-13 13:25:42 -0800
commitbce82efe1fc57f88dc050f5c13508b2e442b7a0d (patch)
treed27abe09c81943c91e2ae9efee7894cbfb2a36c7
parentaeda4c589ada4e6304577e55d55b5c50bc274793 (diff)
minstall: Always remove destination file before (re-)creating it.
This avoids issues with overwriting files that are being used. (cherry picked from d71a5647a3ed4aadd46edfa8a031ffc87d88c5f7 commit)
-rwxr-xr-xbin/minstall1
1 files changed, 1 insertions, 0 deletions
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"`