From fb509432d8d8c18f177fa42fe77a167619536101 Mon Sep 17 00:00:00 2001 From: wsl-wy Date: Wed, 18 Jan 2023 13:10:33 +0800 Subject: [PATCH] small fix --- utils/platform_utils.sh | 2 +- vscode_tasks.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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")"