summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjosch <j.schauer@email.de>2015-01-04 13:22:46 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-04 13:30:16 +0100
commitc1328e502bcff105f4c07ebb5cb1fdce38179cd2 (patch)
treea10141d03c77ee42c25e7cc6ce2c1abecfc052c8
parentb918a3b96f633ed0e6945f1ee983804737e18064 (diff)
downloadjenkins.debian.net-c1328e502bcff105f4c07ebb5cb1fdce38179cd2.tar.xz
bin/find_dpkg_trigger_cycles.sh: do integer, not string comparison
-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 b201f2c1..ed3270c7 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` != 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` != 0 ]; then
fi
echo "number of found explicit trigger cycles:"
wc -l result-explicit
-if [ `wc -l result-explicit` != 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` != 0 ]; then
+if [ `wc -l result-file` -ne 0 ]; then
echo ""
echo ""
echo "+----------------------------------------------------------+"
@@ -278,7 +278,7 @@ if [ `wc -l result-file` != 0 ]; then
echo ""
cat result-file
fi
-if [ `wc -l result-explicit` != 0 ]; then
+if [ `wc -l result-explicit` -ne 0 ]; then
echo ""
echo ""
echo "+----------------------------------------------------------+"