Fix unintended output from conditional and eval error
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
BASE_IMAGE=$(git config get toolbox-dev-env.base-image.name)
|
||||
if git config get toolbox-dev-env.base-image.version-script; then
|
||||
BASE_IMAGE_VERSION=eval $(git config get toolbox-dev-env.base-image.version-script)
|
||||
if git config get toolbox-dev-env.base-image.version-script &>/dev/null; then
|
||||
BASE_IMAGE_VERSION=$(eval $(git config get toolbox-dev-env.base-image.version-script))
|
||||
else
|
||||
BASE_IMAGE_VERSION=$(git config get toolbox-dev-env.base-image.version)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user