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:
b8aa3c0
)
now reports if nothing was done for rev ctrl
author
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 19:48:03 +0000
(14:48 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 19:48:03 +0000
(14:48 -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 2e2214913c8055977b6dc86dcc7e2aea514fdb7f..8f1033cfdd8bf14e4a9a1e75e2aee2e2f63a687e 100644
(file)
--- a/
scripts/rev_control/version_control.sh
+++ b/
scripts/rev_control/version_control.sh
@@
-421,16
+421,14
@@
function perform_revctrl_action_on_file()
save_terminal_title
save_terminal_title
- local
first_run=true
+ local
did_anything=
while read -u 3 dirname; do
if [ -z "$dirname" ]; then
while read -u 3 dirname; do
if [ -z "$dirname" ]; then
- if [ ! -z "$first_run" ]; then
- echo "There was nothing to do the action '$action' on."
- fi
- break
+ # we often have blank lines in the input file for some reason.
+ continue
fi
fi
- unset first_run
+ did_anything=yes
pushd "$dirname" &>/dev/null
echo "[$(pwd)]"
$action .
pushd "$dirname" &>/dev/null
echo "[$(pwd)]"
$action .
@@
-439,6
+437,10
@@
function perform_revctrl_action_on_file()
popd &>/dev/null
done 3<"$tempfile"
popd &>/dev/null
done 3<"$tempfile"
+ if [ -z "$did_anything" ]; then
+ echo "There was nothing to do the action '$action' on."
+ fi
+
restore_terminal_title
rm $tempfile
restore_terminal_title
rm $tempfile