Bash: command not found

Posted by Alexandre Teles on Ask Ubuntu See other posts from Ask Ubuntu or by Alexandre Teles
Published on 2012-08-31T10:36:12Z Indexed on 2012/08/31 15:53 UTC
Read the original article Hit count: 366

I have a script that needs to know the processor architecture. I'm doing this way:

if [["$(uname -m)" = "x86_64"]]; then
echo "Nossa! Você só pode usar 3,5GB de memória RAM. Que triste :( Vou baixar a versão 32bits pra você tá?"

But when I execute the code, I receive: line 35: [[x86_64: command not found

Anyone can help me to solve this? Thanks!

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash