diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-10-05 17:17:28 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-10-05 16:05:43 +0000 |
commit | 819ae3b803e358b40dd10bece841c71fcc8869ea (patch) | |
tree | 4ef32e2093f7e1bd70ef9b1b381fef9c34f0b153 | |
parent | 820721e04309d732e58b90b7a7d57db8136784e0 (diff) |
log.sh: Fix sourcing of globals.sh
Fix sourcing of globals.sh from log.sh when running with a CWD
different from scripts dir.
Change-Id: I680531022d30b57f650a612493f40fdb3e073dc2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 9ac845bdfb5c4ec7fd8c0b0ba1bc8fec867be5aa)
-rwxr-xr-x | mcp/scripts/log.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcp/scripts/log.sh b/mcp/scripts/log.sh index 8bc7c4422..8c4bf3ef5 100755 --- a/mcp/scripts/log.sh +++ b/mcp/scripts/log.sh @@ -14,8 +14,8 @@ DEPLOY_LOG=$1 OPNFV_TMP_LOG="opnfv_fuel_logs" [ -n "${DEPLOY_LOG}" ] || exit 0 -# shellcheck disable=SC1091 -[ -n "${SSH_OPTS}" ] || source globals.sh +# shellcheck disable=SC1090 +[ -n "${SSH_OPTS}" ] || source "$(dirname "${BASH_SOURCE[0]}")/globals.sh" # ssh to cfg01 # shellcheck disable=SC2086,2087 |