From e830fc08875a9410716722e615c26978141d33ad Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 4 Feb 2006 06:01:18 +0000 Subject: touchup code like dosym svn path=/main/trunk/; revision=2657 --- bin/dohard | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') 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}" -- cgit v1.2.3-1-g7c22