cookbook: Fix bash error

During gcc-freestanding-install building:

++ type -t reexport_flags
+ '[' function = ']'
bash: line 38: [: function: unary operator expected
This commit is contained in:
Konstantin Shabanov 2026-08-24 16:16:51 +07:00
parent 14ae5b8807
commit ecf5fde61a

View File

@ -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
}