Read the correct path in case the file is sourced via a symlink
This commit is contained in:
4
default
4
default
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
WHEREAMI="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||||
WHOIAM="${WHEREAMI}/$(basename -- "${BASH_SOURCE[0]:-$0}"; )"
|
||||
WHEREAMI="$(cd -- "$(dirname -- "$(readlink -f "${BASH_SOURCE[0]:-$0}")")" &> /dev/null && pwd)";
|
||||
WHOIAM="${WHEREAMI}/$(basename -- "$(readlink -f "${BASH_SOURCE[0]:-$0}")"; )"
|
||||
|
||||
. ${WHEREAMI}/lib/general
|
||||
. ${WHEREAMI}/lib/source_colors
|
||||
|
||||
Reference in New Issue
Block a user