Check if a variable is a number in bash.