From 9594c27235b6c86a30b62132c653a5b4c332607e Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 31 Jul 2023 13:53:41 +0200 Subject: Fix pull not returning 0 in all cases --- CHANGELOG.md | 2 ++ lib/subcommands/pull.bash | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ac54d0..fa43494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The `svc_` utils should now check which init service you're using when using a linux system. The supported options are still only openrc and systemd. +- The `pull` subcommand should now properly return with exit-code 0 if no + problem were encountered. ## [2.0.0] - 2023-05-22 diff --git a/lib/subcommands/pull.bash b/lib/subcommands/pull.bash index 4f2ae99..8dfb48b 100644 --- a/lib/subcommands/pull.bash +++ b/lib/subcommands/pull.bash @@ -19,4 +19,6 @@ subcommand() git -C "$BASHTARD_ETCDIR" pull origin master || return 4 git -C "$BASHTARD_ETCDIR" submodule update --init --recursive || return 4 [[ -n $dirty ]] && git -C "$BASHTARD_ETCDIR" stash pop + + return 0 } -- cgit v1.1