summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-04 06:01:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-04 06:01:18 +0000
commite830fc08875a9410716722e615c26978141d33ad (patch)
tree03ac54fe81850d34e8c3bdf2deb821fb3fd48bc0
parentcdde7566d358a25583bd1ecc81e3c0fc2aba5857 (diff)
downloadportage-e830fc08875a9410716722e615c26978141d33ad.tar.gz
portage-e830fc08875a9410716722e615c26978141d33ad.tar.bz2
portage-e830fc08875a9410716722e615c26978141d33ad.zip
touchup code like dosym
svn path=/main/trunk/; revision=2657
-rwxr-xr-xbin/dohard10
1 files changed, 5 insertions, 5 deletions
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}"