X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=blobdiff_plain;f=common;h=e3268907a385cb5417ac60796f2f0a50fcbeed2f;hp=cd07252fa1d6917905b41d868fcdbcb67d54f89b;hb=8c4ae5b0f1b839dea40d7aae40de5e15b325ff35;hpb=2925cf7299f958ed6c52ba1ba9d42a841d86c8f2 diff --git a/common b/common index cd07252..e326890 100644 --- a/common +++ b/common @@ -1,5 +1,6 @@ #!/bin/bash -# (C) 2006-2011 Andre Noll +# Copyright (C) 2006 Andre Noll +# Licensed under the LGPL, version 3. See COPYING and COPYING.LESSER. _gsu_init_errors() { @@ -38,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