1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/tests/functional/simple.builder.sh
2025-09-30 20:18:48 -07:00

14 lines
271 B
Bash

#!/usr/bin/env bash
echo "PATH=$PATH"
# Verify that the PATH is empty.
if mkdir foo 2> /dev/null; then exit 1; fi
# Set a PATH (!!! impure).
# shellcheck disable=SC2154
export PATH=$goodPath
# shellcheck disable=SC2154
mkdir "$out"
echo "Hello World!" > "$out"/hello