79674a1d96
/bin/sh exists in NixOS and in fact is the only file in `/bin`: $ docker run -ti --rm nixos/nix ls /bin /usr/bin /bin: sh /usr/bin: env More context in https://lists.sr.ht/~motiejus/bazel-zig-cc/%3CCAFVMu-pvNx%2BpeQYdge_fvmSGrHDmn78VmoYwTxkDgMjbzfVAwQ%40mail.gmail.com%3E
17 lines
236 B
Bash
Executable File
17 lines
236 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
# shellcheck disable=SC2153
|
|
want=$WANT
|
|
# shellcheck disable=SC2153
|
|
binary=$BINARY
|
|
got=$($binary)
|
|
|
|
if [[ "$got" != "$want" ]]; then
|
|
echo wanted:
|
|
echo \ \ "$want"
|
|
echo got:
|
|
echo \ \ "$got"
|
|
exit 1
|
|
fi
|