running a simple command line tool
CJ Tres
ctres at grics.net
Thu Feb 23 14:03:53 UTC 2012
On 02/23/2012 05:35 AM, Steve Flynn wrote:
> On 23 February 2012 11:16, CJ Tres<ctres at grics.net> wrote:
>
>> Running basic smoketest.
>> smoketest.sh: 12: [[: not found
>> smoketest.sh: 18: [[: not found
>> smoketest.sh: 26: function: not found
>> Error found. Leaving run.11199 in place.
>> Unable to execute command: 'sh test.sh'
>
>
> These errors are coming from smoketest.sh shell script - it's
> basically saying that the shell the script is running under doesn't
> support [[ and ]] as test commands.
>
> Have a look at the first line of this script - it'll begin with a hash
> bang (#!) followed by the name of the shell which should be used to
> interpret the script.
>
> What does it say?
>
These are the first lines of smoketest.sh
# This script is a simple regression test for basic natool operations
# that don't create the database.
set -e
export NATOOL_NEUROS_PATH="$1"
if [[ ! -d $NATOOL_NEUROS_PATH ]]; then
echo "Invalid neuros path: '$NATOOL_NEUROS_PATH'"
exit 1
fi
More information about the ubuntu-users
mailing list