Correct pathing for backup 😐

This commit is contained in:
Price Hiller 2021-12-25 01:55:50 -06:00
parent 0a69b86f27
commit a43ed9b657

View File

@ -30,7 +30,7 @@ if [[ ! -d "${HOME}/.config" ]]; then
fi
if [[ -d "${NVIM_CONF_PATH}" ]]; then
backup_nvim_conf_path="${HOME}/.conf/$(basename "${NVIM_CONF_PATH}")-$(date +%Y-%m-%dT%H:%M:%S)"
backup_nvim_conf_path="${DOT_CONFIG_PATH}/$(basename "${NVIM_CONF_PATH}")-$(date +%Y-%m-%dT%H:%M:%S)"
echo "Backing up ${NVIM_CONF_PATH} to ${backup_nvim_conf_path}"
mv "${NVIM_CONF_PATH}" "${backup_nvim_conf_path}"
fi