From: Chris Koeritz Date: Fri, 10 Nov 2017 19:39:26 +0000 (-0500) Subject: now complains about attempts to do nothing X-Git-Tag: 2.140.92^2~21 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=b8aa3c0b842a630c3ea0222a36471275351314a2 now complains about attempts to do nothing --- diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 4ea5ab53..2e221491 100644 --- 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 .