From ecf5fde61a65126e826866f6e142593620c76cc5 Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Mon, 24 Aug 2026 16:16:51 +0700 Subject: [PATCH] cookbook: Fix bash error During gcc-freestanding-install building: ++ type -t reexport_flags + '[' function = ']' bash: line 38: [: function: unary operator expected --- src/cook/script.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cook/script.rs b/src/cook/script.rs index 01b445a63..328d372cc 100644 --- a/src/cook/script.rs +++ b/src/cook/script.rs @@ -38,7 +38,7 @@ function DYNAMIC_INIT { export RUSTFLAGS="-C target-feature=-crt-static -L native=${COOKBOOK_SYSROOT}/lib -C link-arg=-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib" export COOKBOOK_DYNAMIC=1 - if [ function = $(type -t reexport_flags) ]; then + if [ "function" = "$(type -t reexport_flags)" ]; then reexport_flags fi }