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
|
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||||
echo "Running script in nix shell env..."
|
echo "Running script in nix shell env..."
|
||||||
cd "${BASH_SOURCE[0]%/*}"
|
cd "${BASH_SOURCE[0]%/*}"
|
||||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Uncomment to start a container shell session
|
# Uncomment to start a container shell session
|
||||||
|
@ -11,7 +11,7 @@ set -euo pipefail
|
|||||||
if [[ ! -v IN_NIX_SHELL ]]; then
|
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||||
echo "Running script in nix shell env..."
|
echo "Running script in nix shell env..."
|
||||||
cd "${BASH_SOURCE[0]%/*}"
|
cd "${BASH_SOURCE[0]%/*}"
|
||||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup on exit
|
# Cleanup on exit
|
||||||
|
@ -14,7 +14,7 @@ set -euo pipefail
|
|||||||
if [[ ! -v IN_NIX_SHELL ]]; then
|
if [[ ! -v IN_NIX_SHELL ]]; then
|
||||||
echo "Running script in nix shell env..."
|
echo "Running script in nix shell env..."
|
||||||
cd "${BASH_SOURCE[0]%/*}"
|
cd "${BASH_SOURCE[0]%/*}"
|
||||||
exec nix-shell --run "${BASH_SOURCE[0]}"
|
exec nix-shell --run "./${BASH_SOURCE[0]##*/}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tmpDir=/tmp/nix-bitcoin-qemu-vm
|
tmpDir=/tmp/nix-bitcoin-qemu-vm
|
||||||
|
Loading…
Reference in New Issue
Block a user