Skip to content

Commit

Permalink
Make build.sh more robust when fails
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Jul 19, 2024
1 parent 6bbf532 commit 3ad3acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ case ${NIXARCH} in
sudo nixos-rebuild switch --flake . $*
;;
*-darwin)
notify-wrapper -m "Nix build complete" ./bin/build.sh
./result/activate-user
sudo ./result/activate
./bin/build.sh && \
./result/activate-user && \
sudo ./result/activate
;;
*)
echo "Unhandled architecture: ${NIXARCH}" >&2
Expand Down

0 comments on commit 3ad3acc

Please sign in to comment.