We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e58984f commit 5a29177Copy full SHA for 5a29177
1 file changed
.envrc
@@ -36,8 +36,13 @@ if ! which "$0" | grep -q nix; then
36
git checkout flake.lock
37
fi
38
39
- print 'Installing Nix Profile...'
40
- nf profile install . --profile "$profile"
+ echo 'Installing Nix Profile...'
+ if ! nf profile install . --profile "$profile"; then
41
+ echo 'Failed to install new Nix profile! Reverting to previous profile...'
42
+ git checkout flake.lock
43
+ nf profile install . --profile "$profile"
44
+ fi
45
+
46
nf profile list --profile "$profile"
47
48
print 'Starting...'
0 commit comments