From 1e1ee467f6dd080dd918838eafec459e9c8e561b Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 19 Feb 2024 00:49:01 -0500 Subject: [PATCH] Return pushdot error codes --- fake_home/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 95d25ca..b6485bd 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -102,12 +102,16 @@ function push-dconf { function pushdot { cd "$DOT_DIR" || return 1 + local res if [ $# -eq 0 ]; then git commit -a && git push -u origin main && push-dconf + res="$?" else git commit -a -m "$@" && git push -u origin main && push-dconf + res="$?" fi cd - + return $res } function getdot {