mirror of
https://github.com/NixOS/nix.git
synced 2024-10-30 05:40:52 +00:00
12 lines
402 B
Bash
Executable File
12 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source common.sh
|
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../../scripts/nix-profile.sh.in > "$TEST_ROOT"/nix-profile.sh
|
|
|
|
user=$(whoami)
|
|
rm -rf "$TEST_HOME" "$TEST_ROOT/profile-var"
|
|
mkdir -p "$TEST_HOME"
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
|