From: Anders Kaseorg Date: Sun, 21 Mar 2010 01:02:53 +0000 (-0400) Subject: apt-zephyr: Don’t send empty zephyrs for no changes. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/526abdf109801baea1a5caa45c64aa5b5610a59f apt-zephyr: Don’t send empty zephyrs for no changes. Signed-off-by: Anders Kaseorg --- diff --git a/apt-zephyr/apt-zephyr b/apt-zephyr/apt-zephyr index 72c217e..11a9bb7 100755 --- a/apt-zephyr/apt-zephyr +++ b/apt-zephyr/apt-zephyr @@ -87,14 +87,14 @@ parse_v2 () read -r line case "$line" in 'VERSION 2') - parse_v2 + parse_v2 | send_zephyr ;; 'VERSION *') - echo "$0: unrecognized version: $line" + echo "$0: unrecognized version: $line" | send-zephyr ;; '') ;; *) - (echo "$line"; cat) | parse_v1 + (echo "$line"; cat) | parse_v1 | send_zephyr ;; -esac | send_zephyr +esac