From: Chris Koeritz Date: Tue, 11 Aug 2020 13:39:23 +0000 (-0400) Subject: handling no parms better X-Git-Tag: 2.140.125^2~3 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=4e15bc3b03c452086296b0b2e8dab709f34b5957 handling no parms better --- 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 +