X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=root%2Fbin%2Fipkg;fp=root%2Fbin%2Fipkg;h=bf275d842d168dcb8415c1214835efb8f1543d83;hp=c802ce1b3ac8fdda8b2e5160c9ac2e2470785028;hb=aaa687aa49b0e02d150f5ec68aacd0cf9bd14dd3;hpb=c8589c3e53d2e0ca1d84dd3e49a8dcd3ff592e7e diff --git a/root/bin/ipkg b/root/bin/ipkg index c802ce1b3a..bf275d842d 100755 --- a/root/bin/ipkg +++ b/root/bin/ipkg @@ -26,7 +26,7 @@ ipkg_is_upgrade () { while [ \! -z "$A" ] && [ \! -z "$B" ]; do { set $A; a=$1; shift; A=$* set $B; b=$1; shift; B=$* - { [ "$a" -gt "$b" ] 2>- || [ "$a" ">" "$b" ]; } && { return 0; } + { [ "$a" -gt "$b" ] 2>&- || [ "$a" ">" "$b" ]; } && { return 0; } }; done return 1; }