From 472550d8c1e31cdcc129cda103684aa675769c9b Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 13 May 2020 14:41:38 -0400 Subject: [PATCH] Autocommitted updated scripts from mari-wovn --- per-host/mari-wovn/.bash_aliases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/per-host/mari-wovn/.bash_aliases b/per-host/mari-wovn/.bash_aliases index 262419d..8d8e6cb 100644 --- a/per-host/mari-wovn/.bash_aliases +++ b/per-host/mari-wovn/.bash_aliases @@ -94,10 +94,10 @@ function delete_local_branch() { set -o nounset set -o pipefail branch=${1:+feature/$1} - branch=${branch:-$(get_current_branch_name)} || exit "$0" + branch=${branch:-$(get_current_branch_name)} || exit "$?" cd ~/equalizer.git - worktree="$(git worktree list --porcelain | grep -B2 ${branch} | cut -d' ' -f2 | head -n1)" || exit "$0" - git worktree remove "$worktree" || exit "$0" - git branch -d "$branch" || exit "$0" + worktree="$(git worktree list --porcelain | grep -B2 ${branch} | cut -d' ' -f2 | head -n1)" || exit "$?" + git worktree remove "$worktree" || exit "$?" + git branch -d "$branch" || exit "$?" ) }