diff --git a/nixos-edit.script.nix b/nixos-edit.script.nix index 937e338..1cfdef4 100644 --- a/nixos-edit.script.nix +++ b/nixos-edit.script.nix @@ -96,7 +96,7 @@ pkgs.writeShellScriptBin "nixos-edit" '' fi if [ $PUSH = 0 ] ; then git add . - EDITOR=hx git commit -a + EDITOR=hx git commit -a || exit git push if [ "$1" = "push" ] ; then exit 0