I want to generate an output in a bash script that is dependent on a previous input.
The input is stored in the variable OPTION. It can be 1 or 2.
After the input a text should follow:
oname = ${OPTION} == 1 ? "OPTION ONE" : "OPTION TWO";
echo "Your selection was: ${oname}" ?
But I got this error: line xx: ==: comman not found
.
What am I doing wrong?