Remove bashism to be posix compliant

This commit is contained in:
Tobias Happ 2019-12-31 15:49:59 +01:00 committed by Alexander Sosedkin
parent fd73d76faf
commit af2e0b7af0

View file

@ -23,7 +23,7 @@ writeText "login-inner" ''
export GC_NPROCS=1 # to prevent gc warnings of nix, see https://github.com/NixOS/nix/issues/3237 export GC_NPROCS=1 # to prevent gc warnings of nix, see https://github.com/NixOS/nix/issues/3237
${lib.optionalString config.build.initialBuild '' ${lib.optionalString config.build.initialBuild ''
if [[ -e /etc/UNINTIALISED ]]; then if [ -e /etc/UNINTIALISED ]; then
echo "Set default user profile..." echo "Set default user profile..."
${nix}/bin/nix-env --switch-profile /nix/var/nix/profiles/per-user/$USER/profile ${nix}/bin/nix-env --switch-profile /nix/var/nix/profiles/per-user/$USER/profile