mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-28 05:56:07 +02:00
fix(installer): preserve history backup permissions
Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>
This commit is contained in:
co-authored by
robbyrussell
parent
6749d0825b
commit
ce6ebd3d8d
+1
-1
@@ -426,7 +426,7 @@ setup_zshrc() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if cp "$hist" "$hist_backup"; then
|
if cp -p "$hist" "$hist_backup"; then
|
||||||
echo "${FMT_GREEN}Backing up your command history to ${hist_backup}${FMT_RESET}"
|
echo "${FMT_GREEN}Backing up your command history to ${hist_backup}${FMT_RESET}"
|
||||||
hist_backed_up="$hist_backed_up $hist"
|
hist_backed_up="$hist_backed_up $hist"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user