diff options
author | josch <j.schauer@email.de> | 2015-01-04 13:22:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-04 13:30:16 +0100 |
commit | c1328e502bcff105f4c07ebb5cb1fdce38179cd2 (patch) | |
tree | a10141d03c77ee42c25e7cc6ce2c1abecfc052c8 /bin | |
parent | b918a3b96f633ed0e6945f1ee983804737e18064 (diff) | |
download | jenkins.debian.net-c1328e502bcff105f4c07ebb5cb1fdce38179cd2.tar.xz |
bin/find_dpkg_trigger_cycles.sh: do integer, not string comparison
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find_dpkg_trigger_cycles.sh | 8 |
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 "+----------------------------------------------------------+" |