if [ "$Retrieve_api_key" -x "$Create_retrieve_api_key" ]
then
echo " $Retrieve_api_key "
else
echo " $Create_retrieve_api_key "
fi
so the values of the variable Retrieve_api_key= let say "curl -u abc" Create_retrieve_api_key=let say "curl -u 123"
What I'm trying to do is basically if "$Retrieve_api_key" value get printed then skip the next "$Create_retrieve_api_key" but if $Retrieve_api_key value doesn't get printed then execute "$Create_retrieve_api_key"
How do I go about this please? This is a Bash script.