Skip to content

Commit

Permalink
[Airgap] drop useless eval from the airgap script
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
  • Loading branch information
fgiudici committed Jan 27, 2025
1 parent f4d7b6f commit 90e300c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/elemental-airgap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ get_chart_val() {
local local_fail=${3:-"true"}
local local_condition="[[ \"\$$local_var\" == \"null\" ]]"

eval $local_var='$(helm show values $CHART_NAME_OPERATOR | eval yq eval '.${local_val}' | sed s/\"//g 2>&1)'
eval $local_var='$(helm show values $CHART_NAME_OPERATOR | yq '.${local_val}' | sed s/\"//g 2>&1)'
if eval $local_condition; then
if [[ "$local_fail" == "false" ]]; then
log_debug "cannot find $local_val in $CHART_NAME_OPERATOR"
Expand Down

0 comments on commit 90e300c

Please sign in to comment.