Skip to content

Commit

Permalink
bake_flatcar_image: Fix check for empty sysext list
Browse files Browse the repository at this point in the history
"${sysexts[@]}" expands every argument separately, while we need all
array members to be expanded into a single string for the test to work.
"${sysexts[*]}" is what we want.

Signed-off-by: Jeremi Piotrowski <[email protected]>
  • Loading branch information
jepio committed Apr 10, 2024
1 parent 403e75f commit e24232f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bake_flatcar_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ while [ $# -gt 0 ]; do
esac
done

if [ -z "${sysexts[@]}" ] ; then
if [ -z "${sysexts[*]}" ] ; then
echo -e "\nERROR: No sysexts specified.\n"
print_help
exit 1
Expand Down

0 comments on commit e24232f

Please sign in to comment.