From 071f8e48fa3991b111c04469b214dacad1c80bfe Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 4 Jan 2015 13:27:50 +0100 Subject: bin/find_dpkg_trigger_cycles.sh: wc output the filename if it's not given on stdin (round #2) --- bin/find_dpkg_trigger_cycles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh index d455b126..f48244e4 100755 --- a/bin/find_dpkg_trigger_cycles.sh +++ b/bin/find_dpkg_trigger_cycles.sh @@ -245,7 +245,7 @@ echo "| result summary |" echo "+----------------------------------------------------------+" echo "" echo "number of found file based trigger cycles:" -wc -l result-file +wc -l < result-file if [ `wc -l < result-file` -ne 0 ]; then echo "Warning: found file based trigger cycles" echo "number of packages creating file based trigger cycles:" @@ -254,7 +254,7 @@ if [ `wc -l < result-file` -ne 0 ]; then awk '{ print $1 }' result-file | sort | uniq fi echo "number of found explicit trigger cycles:" -wc -l result-explicit +wc -l < result-explicit if [ `wc -l < result-explicit` -ne 0 ]; then echo "Warning: found explicit trigger cycles" echo "number of packages creating explicit trigger cycles:" -- cgit v1.2.3-70-g09d2