diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-07-31 13:53:41 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-07-31 13:53:41 +0200 |
commit | 9594c27235b6c86a30b62132c653a5b4c332607e (patch) | |
tree | 9798a42e2b0476e4c74d8fbbef5c2568477ba1fd | |
parent | 858dd56218b277ff14ba6c1d4ba1f7416f4935b8 (diff) |
Fix pull not returning 0 in all cases
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | lib/subcommands/pull.bash | 2 |
2 files changed, 4 insertions, 0 deletions
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 } |