summaryrefslogtreecommitdiffstats
path: root/bin/find_dpkg_trigger_cycles.sh
diff options
context:
space:
mode:
authorjosch <j.schauer@email.de>2015-01-04 13:24:44 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-04 13:30:19 +0100
commitb32793dd8622b0aa0c344ce0aa5ff453605c3506 (patch)
tree4748e10bfa3e3bf8188f1b6ee16dfb928cc9f1be /bin/find_dpkg_trigger_cycles.sh
parentc1328e502bcff105f4c07ebb5cb1fdce38179cd2 (diff)
downloadjenkins.debian.net-b32793dd8622b0aa0c344ce0aa5ff453605c3506.tar.xz
bin/find_dpkg_trigger_cycles.sh: wc output the filename if it's not given on stdin
Diffstat (limited to 'bin/find_dpkg_trigger_cycles.sh')
-rwxr-xr-xbin/find_dpkg_trigger_cycles.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh
index ed3270c7..d455b126 100755
--- a/bin/find_dpkg_trigger_cycles.sh
+++ b/bin/find_dpkg_trigger_cycles.sh
@@ -246,7 +246,7 @@ echo "+----------------------------------------------------------+"
echo ""
echo "number of found file based trigger cycles:"
wc -l result-file
-if [ `wc -l result-file` -ne 0 ]; then
+if [ `wc -l < result-file` -ne 0 ]; then
echo "Warning: found file based trigger cycles"
echo "number of packages creating file based trigger cycles:"
awk '{ print $1 }' result-file | sort | uniq | wc -l
@@ -255,14 +255,14 @@ if [ `wc -l result-file` -ne 0 ]; then
fi
echo "number of found explicit trigger cycles:"
wc -l result-explicit
-if [ `wc -l result-explicit` -ne 0 ]; then
+if [ `wc -l < result-explicit` -ne 0 ]; then
echo "Warning: found explicit trigger cycles"
echo "number of packages creating explicit trigger cycles:"
awk '{ print $1 }' result-explicit | sort | uniq | wc -l
echo "unique packages creating explicit trigger cycles:"
awk '{ print $1 }' result-explicit | sort | uniq
fi
-if [ `wc -l result-file` -ne 0 ]; then
+if [ `wc -l < result-file` -ne 0 ]; then
echo ""
echo ""
echo "+----------------------------------------------------------+"
@@ -278,7 +278,7 @@ if [ `wc -l result-file` -ne 0 ]; then
echo ""
cat result-file
fi
-if [ `wc -l result-explicit` -ne 0 ]; then
+if [ `wc -l < result-explicit` -ne 0 ]; then
echo ""
echo ""
echo "+----------------------------------------------------------+"