Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit 5144001

Browse files
authored
Merge pull request #43 from Catfriend1/fixIssue35
Properly determine current directory (fixes #35)
2 parents c2303fe + d807c76 commit 5144001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adebar-cli

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ _OOPS_REPEAT=0 # whether to show the same "oops'd line" multiple times
102102
declare -A OOPSES # array to store which lines where already reported
103103

104104
############################################[ Init ]###
105-
BINDIR="${0%/*}"
105+
BINDIR="$(dirname "$(readlink -mn "${0}")")"
106106

107107
# check parameters
108108
if [[ "$1" = "-a" || "$1" = "--auto" ]]; then

0 commit comments

Comments
 (0)