summaryrefslogtreecommitdiff
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 /bin/dohard
parentsend error to stderr (diff)
downloadportage-multirepo-e830fc08875a9410716722e615c26978141d33ad.tar.gz
portage-multirepo-e830fc08875a9410716722e615c26978141d33ad.tar.bz2
portage-multirepo-e830fc08875a9410716722e615c26978141d33ad.zip
touchup code like dosym
svn path=/main/trunk/; revision=2657
Diffstat (limited to 'bin/dohard')
-rwxr-xr-xbin/dohard10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/dohard b/bin/dohard
index 553f503b..03b5e67a 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}"