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

(cherry picked from 26626c0052 commit)
This commit is contained in:
Michel Dänzer
2006-12-11 17:45:06 +01:00
committed by Zou Nan hai
parent bce82efe1f
commit c9795c6ca2
+1 -1
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"`