basename => dirname, thanks Hxal

This commit is contained in:
Moritz Warning
2009-09-22 20:26:50 +02:00
parent 70b2156010
commit 4d9df2012d
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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