From c1328e502bcff105f4c07ebb5cb1fdce38179cd2 Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 4 Jan 2015 13:22:46 +0100 Subject: bin/find_dpkg_trigger_cycles.sh: do integer, not string comparison --- bin/find_dpkg_trigger_cycles.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 "+----------------------------------------------------------+" -- cgit v1.2.3-54-g00ecf