minstall: Pass correct destination file path to $RM regardless of source path.

This commit is contained in:
Michel Dänzer
2006-12-11 17:45:06 +01:00
parent d71a5647a3
commit 26626c0052

View File

@@ -65,7 +65,7 @@ if [ $# -ge 2 ] ; then
elif [ -f "$FILE" ] ; then
#echo "$FILE" is a regular file
$RM "$DEST/$FILE"
$RM "$DEST/`basename $FILE`"
cp "$FILE" "$DEST"
if [ $MODE ] ; then
FILE=`basename "$FILE"`