From 8f6b37783e65979adf8c714a1cc076b2d02c8013 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 3 Nov 2017 23:11:26 -0400 Subject: [PATCH] fixed up wording in recursives --- scripts/rev_control/version_control.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index f3d706aa..091d02bb 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -122,8 +122,12 @@ function do_checkin() save_terminal_title - # shorten the code below. - local blatt="echo checking in '$directory'..." + # make a nice echoer since we want to use it inside conditions below. + local nicedir="$directory" + if [ $nicedir == "." ]; then + nicedir=$(\pwd) + fi + local blatt="echo checking in '$nicedir'..." do_update "$directory" if [ $? -ne 0 ]; then @@ -282,8 +286,12 @@ function do_update() save_terminal_title - # shorten the code below. - local blatt="echo retrieving '$directory'..." + # make a nice echoer since we want to use it inside conditions below. + local nicedir="$directory" + if [ $nicedir == "." ]; then + nicedir=$(\pwd) + fi + local blatt="echo retrieving '$nicedir'..." local retval=0 # plan on success for now. pushd "$directory" &>/dev/null -- 2.34.1