forked from EvergreenCrypto/docker-finance
client: optimize/refactor repository path
- Reduces all calls into a single line - Redefines path as root repository path
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
# Implementation
|
||||
#
|
||||
|
||||
source "$(dirname "$(realpath -s $0)")/src/docker/lib/lib_docker.bash" || exit 1
|
||||
if [ -z "$DOCKER_FINANCE_CLIENT_REPO" ]; then
|
||||
declare -gx DOCKER_FINANCE_CLIENT_REPO
|
||||
DOCKER_FINANCE_CLIENT_REPO="$(dirname "$(realpath -s $0)" | rev | cut -d'/' -f2- | rev)"
|
||||
fi
|
||||
|
||||
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/lib_docker.bash" || exit 1
|
||||
|
||||
#
|
||||
# Execute
|
||||
|
||||
Reference in New Issue
Block a user