summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjosch <j.schauer@email.de>2015-01-04 13:27:50 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-04 13:30:29 +0100
commit071f8e48fa3991b111c04469b214dacad1c80bfe (patch)
tree2e543d1271f0990a0b71338d483fc460f6875c2b /bin
parentb32793dd8622b0aa0c344ce0aa5ff453605c3506 (diff)
downloadjenkins.debian.net-071f8e48fa3991b111c04469b214dacad1c80bfe.tar.xz
bin/find_dpkg_trigger_cycles.sh: wc output the filename if it's not given on stdin (round #2)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find_dpkg_trigger_cycles.sh4
1 files 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:"