examples: fix running outside of examples dir
This commit is contained in:
parent
06cba7b519
commit
33ff8d82be
@ -17,7 +17,7 @@ fi
|
||||
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||
echo "Running script in nix shell env..."
|
||||
cd "${BASH_SOURCE[0]%/*}"
|
||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
||||
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||
fi
|
||||
|
||||
# Uncomment to start a container shell session
|
||||
|
@ -11,7 +11,7 @@ set -euo pipefail
|
||||
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||
echo "Running script in nix shell env..."
|
||||
cd "${BASH_SOURCE[0]%/*}"
|
||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
||||
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||
fi
|
||||
|
||||
# Cleanup on exit
|
||||
|
@ -14,7 +14,7 @@ set -euo pipefail
|
||||
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||
echo "Running script in nix shell env..."
|
||||
cd "${BASH_SOURCE[0]%/*}"
|
||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
||||
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||
fi
|
||||
|
||||
tmpDir=/tmp/nix-bitcoin-qemu-vm
|
||||
|
Loading…
Reference in New Issue
Block a user