nixos-edit: exit on no changes

This commit is contained in:
Daniella / Tove 2024-10-22 21:18:47 +02:00
parent 5202f6ed39
commit 7089e94f21
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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