From af2e0b7af0a85c1347b4ea2abc949eb852e8bdd0 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Tue, 31 Dec 2019 15:49:59 +0100 Subject: [PATCH] Remove bashism to be posix compliant --- modules/environment/login/login-inner.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/environment/login/login-inner.nix b/modules/environment/login/login-inner.nix index 19dd164..3d2fa87 100644 --- a/modules/environment/login/login-inner.nix +++ b/modules/environment/login/login-inner.nix @@ -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 ${lib.optionalString config.build.initialBuild '' - if [[ -e /etc/UNINTIALISED ]]; then + if [ -e /etc/UNINTIALISED ]; then echo "Set default user profile..." ${nix}/bin/nix-env --switch-profile /nix/var/nix/profiles/per-user/$USER/profile