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 }