oot icon indicating copy to clipboard operation
oot copied to clipboard

Remove hardcoded bash location in tools/preprocess.sh

Open CharlesAverill opened this issue 1 year ago • 3 comments

tools/preprocess.sh contains a hardcoded shebang to /bin/bash that ignores the SHELL variable in Makefile. This breaks the build process for NixOS (or anyone else who doesn't have a /bin/bash) with a cryptic error. I've removed the shebang.

CharlesAverill avatar Oct 22 '24 19:10 CharlesAverill

That does complicate things... could check $SHELL for something that ends in /bash?

CharlesAverill avatar Oct 22 '24 19:10 CharlesAverill

would #!/usr/bin/env bash work for you?

cadmic avatar Oct 22 '24 20:10 cadmic

Yes, that does work!

CharlesAverill avatar Oct 22 '24 20:10 CharlesAverill