Index: mttroot/mtt/bin/mtt_versions ================================================================== --- mttroot/mtt/bin/mtt_versions +++ mttroot/mtt/bin/mtt_versions @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.5 2005/02/17 18:36:38 geraint +## Removed a bash-ism: replaced [[ conditional ]] with [ conditional ] +## ## Revision 1.4 2003/08/06 22:39:40 geraint ## Fixed reporting of non-existent software, no longer says "is OK and has version .". ## ## Revision 1.3 2002/04/28 18:41:26 geraint ## Fixed [ 549658 ] awk should be gawk. @@ -55,11 +58,11 @@ print_version () { program=${1:-"Error: unknown program"} shift; version=$* - if [ ${version:-""} ]; then + if [ "${version:-""}" ]; then echo is OK and has version $version. else echo $program does not exist. fi }