From b6e6cb5e7318d1334e39fb1de03c4d45fa5c28bd Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 28 Feb 2023 12:22:53 +0100 Subject: [PATCH] :bug: Fix expand in gwfmt --- fmt | 2 +- scripts/embed.bash | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fmt b/fmt index aac1f51d..47479925 160000 --- a/fmt +++ b/fmt @@ -1 +1 @@ -Subproject commit aac1f51dea1d9ba089d3c6632f6a965911f445d7 +Subproject commit 474799254ebdf88d5edffa07580cee5d3eb34de0 diff --git a/scripts/embed.bash b/scripts/embed.bash index 7ff76f09..a3c55049 100644 --- a/scripts/embed.bash +++ b/scripts/embed.bash @@ -215,6 +215,8 @@ array_is_ok "$ldflags" && { } standalone=$(jq -rc '.standalone' <<< "$json") -[ "$standalone" = "true" ] && +[ "$standalone" = "true" ] && { + array_is_ok "$args" || config echo "CFLAGS += -DGWION_CONFIG_ARGS" config "CFLAGS += -DGWION_STANDALONE" +} : -- 2.43.0