openSUSE-Rust / cargo-packaging

Cargo Packaging macros
Mozilla Public License 2.0
5 stars 6 forks source link

Drop bashisms from macros.cargo file #4

Closed luc14n0 closed 1 year ago

luc14n0 commented 1 year ago

openSUSE/SUSE's default build environment doesn't set %_buildshell. That means the value of such macro is the original /bin/sh, set by RPM's /usr/lib/rpm/macros file. So we should avoid bashisms, like [[ ... ]], without explicitly setting the %_buildshell macro to /bin/bash.