fix(installer): preserve history backup permissions

Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-06 00:14:31 +00:00
committed by GitHub
co-authored by robbyrussell
parent 6749d0825b
commit ce6ebd3d8d
+1 -1
View File
@@ -426,7 +426,7 @@ setup_zshrc() {
exit 1
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}"
hist_backed_up="$hist_backed_up $hist"
else