mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 07:16:17 +02:00
10f864c5ae
This is good for shebang, and also good for future build system simplifications
11 lines
394 B
Bash
Executable file
11 lines
394 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
|