From e164c81a1b760cc99bfe34b611d35c03e8587457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Fri, 24 Nov 2023 18:25:27 -0500 Subject: [PATCH] [common] Validate the scenario before claiming true --- utils/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/common.sh b/utils/common.sh index 1c5fb62e..3749e6f5 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -267,11 +267,12 @@ function detect_scenario() { # Make sure scenario is valid YAML download_yq "$YQ_BINARY_PATH" "$RUN_AS_HOME/.config/ovos-installer/$SCENARIO_NAME" &>>"$LOG_FILE" - export SCENARIO_FOUND="true" # shellcheck source=scenario.sh source utils/scenario.sh + export SCENARIO_FOUND="true" + if [ -f "$YQ_BINARY_PATH" ]; then rm "$YQ_BINARY_PATH" fi