X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=install-sh;h=da077192aa5b48d4cb1efd8119af075eafeb3cc2;hb=17fe41bae8a65fb88683c9795414556ed9b636e9;hp=5a6d3999ad185625a785c558e3264b4d23ce72d1;hpb=ca3ab12a66fc683cabf546fd405cfbf39ef9fb6f;p=debian%2Fsudo diff --git a/install-sh b/install-sh index 5a6d399..da07719 100755 --- a/install-sh +++ b/install-sh @@ -1,7 +1,7 @@ #! /bin/sh ## (From INN-1.4, written by Rich Salz) -## $Revision: 1.9 $ +## $Revision: 1.9.4.1 $ ## A script to install files and directories. PROGNAME=`basename $0` @@ -182,7 +182,7 @@ fi ## Get the destination and a temp file in the destination diretory. if [ -d "$2" ] ; then - DEST="$2/$1" + DEST="$2/`basename $1`" TEMP="$2/$$.tmp" else DEST="$2"