Correct pathing for backup 😐
This commit is contained in:
parent
0a69b86f27
commit
a43ed9b657
@ -30,7 +30,7 @@ if [[ ! -d "${HOME}/.config" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "${NVIM_CONF_PATH}" ]]; then
|
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}"
|
echo "Backing up ${NVIM_CONF_PATH} to ${backup_nvim_conf_path}"
|
||||||
mv "${NVIM_CONF_PATH}" "${backup_nvim_conf_path}"
|
mv "${NVIM_CONF_PATH}" "${backup_nvim_conf_path}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user