#!/usr/bin/env bash # SPDX-FileCopyrightText: 2023 Patrick Spek # # SPDX-License-Identifier: AGPL-3.0-or-later subcommand() { notice "bashtard/pull" "Pulling latest changes in $BASHTARD_ETCDIR" git -C "$BASHTARD_ETCDIR" stash git -C "$BASHTARD_ETCDIR" pull origin master || return 4 git -C "$BASHTARD_ETCDIR" submodule update --recursive --remote || return 4 git -C "$BASHTARD_ETCDIR" stash pop }