Index: iil.sh ================================================================== --- iil.sh +++ iil.sh @@ -51,13 +51,11 @@ show_tag() { # check if $current_tag is proper integer, otherwise set to 0 - if [ $current_tag -eq $current_tag 2> /dev/null ] ; then - # do nothing - else + if [ $current_tag -ne $current_tag 2> /dev/null ] ; then current_tag=0 fi # check if $current_tag is in range of $last_server..$last_channel # otherwise wrap to first ($last_server) or last item ($last_channel)