X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=blobdiff_plain;f=common;fp=common;h=e3268907a385cb5417ac60796f2f0a50fcbeed2f;hp=fe64cd6b61f690d6ad06da0b2cae747e2ba1f308;hb=5829a1d41d45ea6a8ce04292c8f4c9487a4414a4;hpb=a149aac26f256c962a8787466dc0b8b282aff87b diff --git a/common b/common index fe64cd6..e326890 100644 --- a/common +++ b/common @@ -39,7 +39,7 @@ EOF gsu_is_a_number() { result="$1" - if (("$1" == "$1")) &> /dev/null; then + if [ "$1" -eq "$1" ] &> /dev/null; then ret=$GSU_SUCCESS else ret=-$E_GSU_NOT_A_NUMBER