mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-21 12:48:38 +01:00
batpipe: Fix SELF variable being wrong when compressed
This commit is contained in:
parent
ea604457ea
commit
f07a22d536
@ -37,8 +37,9 @@
|
|||||||
#
|
#
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# shellcheck disable=SC1090 disable=SC2155
|
# shellcheck disable=SC1090 disable=SC2155
|
||||||
SELF="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo ".")")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
|
SELF_NC="${BASH_SOURCE:-$0}"
|
||||||
LIB="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo ".")")/../lib" && pwd)"
|
SELF="$(cd "$(dirname "${SELF_NC}")" && cd "$(dirname "$(readlink "${SELF_NC}" || echo ".")")" && pwd)/$(basename "${SELF_NC}")"
|
||||||
|
LIB="$(cd "$(dirname "${SELF_NC}")" && cd "$(dirname "$(readlink "${SELF_NC}" || echo ".")")/../lib" && pwd)"
|
||||||
source "${LIB}/constants.sh"
|
source "${LIB}/constants.sh"
|
||||||
source "${LIB}/dirs.sh"
|
source "${LIB}/dirs.sh"
|
||||||
source "${LIB}/str.sh"
|
source "${LIB}/str.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user