Skip to content

Commit

Permalink
fix(fish): error handling in update-env
Browse files Browse the repository at this point in the history
  • Loading branch information
nanozuki committed Mar 18, 2024
1 parent 17e4239 commit e051a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/fish/functions/update-env.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if type -q home-manager
if test -z (git status --porcelain); and test "master" = (git branch --show-current)
git pull
home-manager switch --flake .#$HM_CONFIG_NAME
nix-collect-garbage --delete-older-than 30d
and nix-collect-garbage --delete-older-than 30d
else
echo "home-manager is not clean or not in master branch"
return 1
Expand Down

0 comments on commit e051a34

Please sign in to comment.