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 210c275..819b2bc 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"`