diff --git a/utils/platform_utils.sh b/utils/platform_utils.sh index 539342f2..7d4d80c0 100644 --- a/utils/platform_utils.sh +++ b/utils/platform_utils.sh @@ -46,7 +46,7 @@ function getEnvironmentVariable() { fi if [[ -z "$RET_VALUE" ]]; then - RET_VALUE=${VAR_NAME} + RET_VALUE=${!VAR_NAME} fi if [[ -n "$RET_VALUE" ]]; then diff --git a/vscode_tasks.sh b/vscode_tasks.sh index 9bf02e91..8e7e9299 100755 --- a/vscode_tasks.sh +++ b/vscode_tasks.sh @@ -2,6 +2,7 @@ if [[ $# -eq 0 ]]; then echo "usage: [--debug|--release] [--clean] [--enable-cmake] [--setup-project] [--build] [--run]" + exit 0 fi cd "$(dirname "$0")"