projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ce3122
)
fixed up wording in recursives
author
Chris Koeritz
<fred@gruntose.com>
Sat, 4 Nov 2017 03:11:26 +0000
(23:11 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Sat, 4 Nov 2017 03:11:26 +0000
(23:11 -0400)
scripts/rev_control/version_control.sh
patch
|
blob
|
history
diff --git
a/scripts/rev_control/version_control.sh
b/scripts/rev_control/version_control.sh
index f3d706aa1c4016620940be907f6bd686aaa644a0..091d02bb0dda2c39c949a38196df9099ebf0cc8a 100644
(file)
--- a/
scripts/rev_control/version_control.sh
+++ b/
scripts/rev_control/version_control.sh
@@
-122,8
+122,12
@@
function do_checkin()
save_terminal_title
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
do_update "$directory"
if [ $? -ne 0 ]; then
@@
-282,8
+286,12
@@
function do_update()
save_terminal_title
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
local retval=0 # plan on success for now.
pushd "$directory" &>/dev/null