handling no parms better
authorChris Koeritz <cak0l@virginia.edu>
Tue, 11 Aug 2020 13:39:23 +0000 (09:39 -0400)
committerChris Koeritz <cak0l@virginia.edu>
Tue, 11 Aug 2020 13:39:23 +0000 (09:39 -0400)
scripts/rev_control/branchy.sh

index 5bcedc8537986e68dcd39d189f303595e2c568ac..15ec7702429adf5c23219041140e5ed0d50e6dbc 100644 (file)
@@ -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
+