Bash: command not found
- by Alexandre Teles
I have a script that needs to know the processor architecture. I'm doing this way:
if [["$(uname -m)" = "x86_64"]]; then
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
else
echo "Nossa! Você só pode usar 3,5GB de memória RAM. Que triste :( Vou baixar a versão 32bits pra você tá?"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm
fi
But when I execute the code, I receive:
instala_chrome.sh: line 35: [[x86_64: command not found
Anyone can help me to solve this? Thanks!