lib/helpers: Don't rm "$profile_path" before writing to it

When the file is being re-created, we write to it, instead of appending to
it. So, the rm here is unnecessary and prevents users from linking the profile
file to another location that is potentially under version control. For
instance, once could link to a profile file located at
"$BASH_IT_CUSTOM/profiles/*.bash_it".
pull/2092/head
Puneeth Chaganti 2022-02-16 20:55:08 +05:30
parent 562eb6ce68
commit b3ef9ea209
1 changed files with 0 additions and 1 deletions

View File

@ -511,7 +511,6 @@ function _bash-it-profile-save() {
case "$RESP" in case "$RESP" in
[yY]) [yY])
echo -e "${echo_green?}Overwriting profile '$name'...${echo_reset_color?}" echo -e "${echo_green?}Overwriting profile '$name'...${echo_reset_color?}"
rm "$profile_path"
break break
;; ;;
[nN] | "") [nN] | "")