Skip to content

Commit

Permalink
[common] Validate the scenario before claiming true
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 24, 2023
1 parent 03f64eb commit e164c81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e164c81

Please sign in to comment.