From: Mike Frysinger Date: Sat, 4 Feb 2006 06:01:18 +0000 (-0000) Subject: touchup code like dosym X-Git-Tag: v2.1_pre5_2760~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e830fc08875a9410716722e615c26978141d33ad;p=portage.git touchup code like dosym svn path=/main/trunk/; revision=2657 --- diff --git a/bin/dohard b/bin/dohard index 553f503b2..03b5e67aa 100755 --- a/bin/dohard +++ b/bin/dohard @@ -3,11 +3,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Id: /var/cvsroot/gentoo-src/portage/bin/dohard,v 1.6 2004/10/04 13:56:50 vapier Exp $ -if [ ${#} -ne 2 ] ; then - echo "${0}: two arguments needed" +if [[ $# -ne 2 ]] ; then + echo "$0: two arguments needed" 1>&2 exit 1 fi -mysrc="${1}" -mydest="${2}" -ln -f "${D}${mysrc}" "${D}${mydest}" +target=$1 +linkname=$2 +exec ln -f "${D}${target}" "${D}${linkname}"