From 4d9df2012d874ace2c398b5b0294e6ec34eab337 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Tue, 22 Sep 2009 20:26:50 +0200 Subject: [PATCH] basename => dirname, thanks Hxal --- bin/ldmd | 2 +- bin/ldmd2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ldmd b/bin/ldmd index 5d95a34b..920fe9f6 100755 --- a/bin/ldmd +++ b/bin/ldmd @@ -1,7 +1,7 @@ #! /usr/bin/env bash # Default to 'ldc' next to this file -LDC=`basename "$0"`/ldc +LDC=`dirname "$0"`/ldc if [ ! -x "$LDC" ]; then # If that doesn't work, assume this script was called via $PATH # and do the same for ldc diff --git a/bin/ldmd2 b/bin/ldmd2 index 959586c9..4f078ee4 100755 --- a/bin/ldmd2 +++ b/bin/ldmd2 @@ -1,7 +1,7 @@ #! /usr/bin/env bash # Default to 'ldc' next to this file -LDC=`basename "$0"`/ldc2 +LDC=`dirname "$0"`/ldc2 if [ ! -x "$LDC" ]; then # If that doesn't work, assume this script was called via $PATH # and do the same for ldc