mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-05 22:10:04 +02:00
basename => dirname, thanks Hxal
This commit is contained in:
2
bin/ldmd
2
bin/ldmd
@@ -1,7 +1,7 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# Default to 'ldc' next to this file
|
# Default to 'ldc' next to this file
|
||||||
LDC=`basename "$0"`/ldc
|
LDC=`dirname "$0"`/ldc
|
||||||
if [ ! -x "$LDC" ]; then
|
if [ ! -x "$LDC" ]; then
|
||||||
# If that doesn't work, assume this script was called via $PATH
|
# If that doesn't work, assume this script was called via $PATH
|
||||||
# and do the same for ldc
|
# and do the same for ldc
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# Default to 'ldc' next to this file
|
# Default to 'ldc' next to this file
|
||||||
LDC=`basename "$0"`/ldc2
|
LDC=`dirname "$0"`/ldc2
|
||||||
if [ ! -x "$LDC" ]; then
|
if [ ! -x "$LDC" ]; then
|
||||||
# If that doesn't work, assume this script was called via $PATH
|
# If that doesn't work, assume this script was called via $PATH
|
||||||
# and do the same for ldc
|
# and do the same for ldc
|
||||||
|
|||||||
Reference in New Issue
Block a user