You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"dotly/restorer" fails on dotfiles backup because calls create_dotfiles_dir instead of backup_dotfiles_dir
{▸} ~ bash <(curl -s https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/restorer)
┌────────────────────────────────────┐
~ │ 🚀 Welcome to the dotly restorer! │ ~
└────────────────────────────────────┘
Checking if Git is installed
> Git command exists on this system
> Curl command exists on this system
🤔 Where do you want your dotfiles to be located? (default ~/.dotfiles) :
🤔 🗂 Your DOTFILES_PATH is not empty. Do you want to do a backup first? [Y/n] : Y
/dev/fd/11: línea 194: create_dotfiles_dir: orden no encontrada
Current code:
# Backup if currently there are any dotfiles and prepare parent directoryif [[ -d"$DOTFILES_PATH" ]] &&!${continue:-};then
_q "🗂 Your DOTFILES_PATH is not empty. Do you want to do a backup first? [Y/n]""PROMPT_REPLY"
[[ "${PROMPT_REPLY:-Y}"=~ ^[Yy] ]] && create_dotfiles_dir "$DOTFILES_PATH"fi
Fixed code:
# Backup if currently there are any dotfiles and prepare parent directoryif [[ -d"$DOTFILES_PATH" ]] &&!${continue:-};then
_q "🗂 Your DOTFILES_PATH is not empty. Do you want to do a backup first? [Y/n]""PROMPT_REPLY"
[[ "${PROMPT_REPLY:-Y}"=~ ^[Yy] ]] && backup_dotfiles_dir "$DOTFILES_PATH"fi
The text was updated successfully, but these errors were encountered:
"dotly/restorer" fails on dotfiles backup because calls
create_dotfiles_dir
instead ofbackup_dotfiles_dir
Current code:
Fixed code:
The text was updated successfully, but these errors were encountered: