Below is the operation, I perform before I run the script:
export DEPLOY_ENV=dev
When I run the script, I want to have a variable in the shell script which takes the default value when the environment variable is not present. If it’s present it has to store its value in a variable. Can anyone tell me how to do it?