nixos-edit: exit on no changes
This commit is contained in:
parent
5202f6ed39
commit
7089e94f21
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue