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