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:
1ca24b1
)
now complains about attempts to do nothing
author
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 19:39:26 +0000
(14:39 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 19:39:26 +0000
(14:39 -0500)
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 4ea5ab5322a1ba7a0fa36ca35c611fa50886a1bd..2e2214913c8055977b6dc86dcc7e2aea514fdb7f 100644
(file)
--- a/
scripts/rev_control/version_control.sh
+++ b/
scripts/rev_control/version_control.sh
@@
-421,8
+421,16
@@
function perform_revctrl_action_on_file()
save_terminal_title
+ local first_run=true
+
while read -u 3 dirname; do
- if [ -z "$dirname" ]; then continue; fi
+ if [ -z "$dirname" ]; then
+ if [ ! -z "$first_run" ]; then
+ echo "There was nothing to do the action '$action' on."
+ fi
+ break
+ fi
+ unset first_run
pushd "$dirname" &>/dev/null
echo "[$(pwd)]"
$action .