Skip to content

Commit

Permalink
Fix inconsistency between plain 'env' and 'docktie_cli env' output per
Browse files Browse the repository at this point in the history
  • Loading branch information
icasimpan committed May 7, 2022
1 parent 0c70042 commit 21e9751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions utils/bin/docktie_cli
@@ -1,8 +1,8 @@
#!/bin/bash

## -------- source common library ---------
PROJECT_ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )"
. $PROJECT_ROOTDIR/etc/controller.bash.inc
SHCF_PLATFORM_ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )"
. $SHCF_PLATFORM_ROOTDIR/etc/controller.bash.inc


## list of functions to auto-load
Expand Down
4 changes: 1 addition & 3 deletions utils/lib/kernel/core.bash.inc
Expand Up @@ -7,9 +7,7 @@ core() {
shift

## Environment checking dependent on init.sh being run ...
if [[ "$DOCKTIE_INIT" = "true" ]] && [[ -e $DOCKTIE_ENV ]]; then
. $DOCKTIE_ENV

if [[ "$DOCKTIE_INIT" = "true" ]]; then
DOCKER_COMPOSE_BIN="docker-compose -f $DOCKTIE_DOCKER_COMPOSE_FULLPATH"
elif [[ "$script_name" != "docktie_cli" ]] || [[ "$script_subcmd" != "getx" ]]; then
echo 'ERROR: DockTie needs to be initialized.'
Expand Down

0 comments on commit 21e9751

Please sign in to comment.