I have written the following shell script. It is executing well in the home dir but now that I have moved this file to another folder and when try to run this file it gives the : not a valid identifier error..
#!/bin/bash
echo "Specify environment(DEV,QA,PROD)"
read environment
upperString="${environment^^}"
export HYBRIS_OPT_CONFIG_DIR=$HOME/hybris5.7/hybris/bin/custom/rockport-shop/Configurations/Environments/config-"$upperString"
echo "Added Configuration ... "
How can I find the problem?