mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-06 04:27:45 +08:00
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:
parent
14ae5b8807
commit
ecf5fde61a
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user