commit | 3dd08234a3cf89f2d829430dee2925a8e065517f | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Tue May 24 09:58:02 2022 +0100 |
committer | Skyler Grey <skyler3665@gmail.com> | Tue May 24 09:58:02 2022 +0100 |
tree | f064ae91e2e97af88411b6144e3e5106f8b19858 | |
parent | 4a86fe70a184843b974cf02160891be43e5b4c09 [diff] |
Do not remove old config if new one fails to build
diff --git a/scripts/rebuild-home.sh b/scripts/rebuild-home.sh index ff32c4f..fd24097 100755 --- a/scripts/rebuild-home.sh +++ b/scripts/rebuild-home.sh
@@ -9,7 +9,7 @@ /usr/bin/env git commit -am "$changes" fi -nix build .#homeConfigurations.${USER}.activationPackage $1 +nix build .#homeConfigurations.${USER}.activationPackage $1 || exit 1 nix profile list \ | { grep 'home-manager-path$' || test $? = 1; } \