diff --git a/scripts/setup_auto_sourcing.bash b/scripts/setup_auto_sourcing.bash index c48d2f79..435a4c37 100755 --- a/scripts/setup_auto_sourcing.bash +++ b/scripts/setup_auto_sourcing.bash @@ -29,11 +29,8 @@ echo "Copying ${rtw_file} to your home folder." if ! [ -f "$HOME/$rtw_file" ]; then cp "${template_location}" ~/. else - new_rtw_file_name="${rtw_file}.bkp-$(ls ${rtw_file_location}* | wc -l)" echo "" - notify_user "${rtw_file} already exists. Moved it to ${new_rtw_file_name}." - mv "${rtw_file_location}" "$HOME/${new_rtw_file_name}" || { echo "Error: Could not create a copy of already existing ${rtw_file}. Please rename this file and run script again."; return 1; } - cp "${template_location}" ~/. + notify_user "${rtw_file} already exists." fi sed -i "s|source /setup.bash|source $FRAMEWORK_BASE_PATH/setup.bash|g" "$rtw_file_location"