We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f61f3 commit 3cd379cCopy full SHA for 3cd379c
lib/git-hub
@@ -62,7 +62,15 @@ x Debug - Turn on Bash trace (set -x) output
62
"
63
64
# source bash+ :std
65
-SELFDIR="$(cd -P `dirname $BASH_SOURCE` && pwd -P)"
+SELFFILE="$BASH_SOURCE"
66
+while [ -h "$SELFFILE" ]; do
67
+ SELFDIR=$(cd -P "$(dirname "$SELFFILE")" && pwd -P)
68
+ SELFFILE=$(readlink "$SELFFILE")
69
+ if [ "${SELFFILE:0:1}" != "/" ]; then
70
+ SELFFILE="$SELFDIR/$SELFFILE"
71
+ fi
72
+done
73
+SELFDIR=$(cd -P $(dirname "$SELFFILE") && pwd -P)
74
source "$SELFDIR/git-hub.d/bash+.bash"
75
bash+:import :std can
76
0 commit comments