shellcheck: fix lint of scripts in tests
This commit is contained in:
parent
a59c3b4b8a
commit
f184bb34e6
14 changed files with 82 additions and 59 deletions
|
|
@ -6,15 +6,17 @@ cd "${BASH_SOURCE[0]%/*}"
|
|||
# Use cachix to cache the `flake-info` build
|
||||
cachixCache=nix-bitcoin
|
||||
|
||||
nix run .#cachix -- use $cachixCache
|
||||
nix run .#cachix -- use "$cachixCache"
|
||||
|
||||
# We're running in a basic, unprivileged container that doesn't support sandboxing.
|
||||
# Sandboxing is unnneeded because we're only building the 3rd-party `flake-info` tool.
|
||||
echo "sandbox = false" >> /etc/nix/nix.conf
|
||||
export PATH=$(nix shell -L .#flake-info .#cachix -c sh -c 'echo $PATH')
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
PATH=$(nix shell -L .#flake-info .#cachix -c sh -c 'echo $PATH')
|
||||
|
||||
if [[ ${CACHIX_SIGNING_KEY:-} ]]; then
|
||||
cachix push $cachixCache $(type -P flake-info);
|
||||
cachix push "$cachixCache" "$(type -P flake-info)";
|
||||
fi
|
||||
|
||||
echo "Running flake-info (nixos-search)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue