From 4e15bc3b03c452086296b0b2e8dab709f34b5957 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 11 Aug 2020 09:39:23 -0400 Subject: [PATCH] handling no parms better --- scripts/rev_control/branchy.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/rev_control/branchy.sh b/scripts/rev_control/branchy.sh index 5bcedc85..15ec7702 100644 --- a/scripts/rev_control/branchy.sh +++ b/scripts/rev_control/branchy.sh @@ -10,17 +10,11 @@ save_terminal_title ############## -###echo "showing repository branches at: $(date)" - FULL_LIST="$@" -# only add the standard feisty meow repo list items if we were given no args on command line. -#hmmm: below seems to be oddly just major locations; is the repo list all relative names? +# use the current directory if no paths were provided. if [ -z "$FULL_LIST" ]; then - FULL_LIST=" $(dirname $FEISTY_MEOW_APEX) $HOME " - if [ "$OS" == "Windows_NT" ]; then - FULL_LIST+=" c:/ d:/ e:/ " - fi + FULL_LIST="." fi show_active_branch $FULL_LIST @@ -29,3 +23,4 @@ exit_on_error "showing branches: $FULL_LIST" ############## restore_terminal_title + -- 2.34.1