batpipe: Fix SELF variable being wrong when compressed

This commit is contained in:
Ethan P 2023-03-21 01:08:30 -07:00
parent ea604457ea
commit f07a22d536
No known key found for this signature in database
GPG Key ID: A15E33AC0325A3F5

View File

@ -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"