diff options
author | Michel Dänzer <[email protected]> | 2006-12-11 17:36:35 +0100 |
---|---|---|
committer | Zou Nan hai <[email protected]> | 2006-12-13 13:25:42 -0800 |
commit | bce82efe1fc57f88dc050f5c13508b2e442b7a0d (patch) | |
tree | d27abe09c81943c91e2ae9efee7894cbfb2a36c7 | |
parent | aeda4c589ada4e6304577e55d55b5c50bc274793 (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-x | bin/minstall | 1 |
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"` |