minstall: Pass correct destination file path to $RM regardless of source path.
[mesa.git] / bin / minstall
index 210c2758d3700093e8fb52846eb9515ebd0efe9c..819b2bc7e4acfa58a93755ca40414ce356c25aa5 100755 (executable)
@@ -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"`