c4125cf13b
As it expects Bash to be at `/bin/bash`, the current implementation fails to execute on NixOS, given that there bash is in a non-standard path (i.g. `/nix/store/<hash>-bash-interactive-<version>/bin/bash`). This patch specifically changes `/bin/bash` paths to use `/usr/bin/env bash`, which should give the correct path in every Unix system. Signed-off-by: Luis Holanda <luiscmholanda@gmail.com>
18 lines
257 B
Bash
Executable File
18 lines
257 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# 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
|