I am trying to install dev-stack in a CentOS VM. When I run the create-stack-user.sh file by the command:
Code:
$ bash devstack/tools/create-stack-user.sh
I am getting the below error:
Code:
/opt/devstack/functions-common: line 162: conditional binary operator expected
On looking at the file, create-stack-user.sh I have seen that it calls an another shell script file "functions-common" and upon looking at the line number from where the error is reported, I found the below function there:
Code:
function isset {
[[ -v "$1" ]]
}
I tried the same command with echo and same error occurred:
Code:
echo `[[ -v "$1" ]]`
bash: command substitution: line 1: conditional binary operator expected
bash: command substitution: line 1: syntax error near `"$1"'
bash: command substitution: line 1: `[[ -v "$1" ]]'
Please suggest where is it going wrong..!!