From: Chris Koeritz Date: Sat, 4 Nov 2017 03:11:26 +0000 (-0400) Subject: fixed up wording in recursives X-Git-Tag: 2.140.90~93 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=8f6b37783e65979adf8c714a1cc076b2d02c8013;p=feisty_meow.git fixed up wording in recursives --- 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