1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00
nix/tests/nix-profile.sh
2016-04-13 10:43:33 -04:00

11 lines
285 B
Bash

source common.sh
home=$TEST_ROOT/home
user=$(whoami)
rm -rf $home
mkdir -p $home
HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh"
HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency
[ -L $home/.nix-profile ]
[ -e $home/.nix-channels ]