cd"${0%/*}"||(echo"Could not change-dir to this script's dir!"&&exit)# Change the working directory to the script's directory, when running from other location.
mkdir ${dnet_repo}||(echo -e "The directory \"~/.m2/repository-dnet45/\" could not be created! Exiting.."&&exit 5)
echo"Created the \"dnet_repo\": ${dnet_repo}"
fi
if[ ! -f ${dnet_repo}"/"${settings_file}];then
cp ${settings_file}${dnet_repo}"/"${settings_file}||(echo -e "The file \"settings-dnet45.xml\" could not be copied in directory \"~/.m2/repository-dnet45\"! Exiting.."&&exit 6)
echo"Copied the \"settings_file\" to: ${dnet_repo}/${settings_file}"