From 32df789b099a8d6c34b423cd7b3ff892aaaddd4f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 18 Apr 2016 19:08:51 -0700 Subject: Use empty checkstatus function Since it is considered a simple command, it will trigger a failure if the previous command had failed. --- scripts/tree.rc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts/tree.rc') diff --git a/scripts/tree.rc b/scripts/tree.rc index 28916224..12bf9c32 100644 --- a/scripts/tree.rc +++ b/scripts/tree.rc @@ -6,10 +6,7 @@ repo=$1 tag=$2 index=$3 -fn checkstatus { - s=$status if(! ~ $s '' '|') exit $s - status=() -} +fn checkstatus {} ifs=() { oldcwd=`{pwd | head -c -1} } cd $repo -- cgit v1.2.3