minstall: Pass correct destination file path to $RM regardless of source path.
authorMichel Dänzer <michel@tungstengraphics.com>
Mon, 11 Dec 2006 16:45:06 +0000 (17:45 +0100)
committerZou Nan hai <nanhai.zou@intel.com>
Wed, 13 Dec 2006 21:26:09 +0000 (13:26 -0800)
(cherry picked from 26626c0052cd5442f609659aa9ed25ac78e65b55 commit)

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"`