user="none"
noneexist="false"
id -u $user > /dev/null 2>&1
if [[ $? -eq 0]]; then ${user}exist="true"; else echo "$user do not exist"; fi
-bash: syntax error in conditional expression: unexpected token `;'
-bash: syntax error near `;'
I am receiving this error, not sure what is wrong with my statement.