fix user .bashrc has forked

This commit is contained in:
pvincent
2026-08-23 16:53:10 +04:00
parent 4e85758ea2
commit d518b94ddc
+1 -1
View File
@@ -53,7 +53,7 @@ function fix_users_bashrc {
echo -e "$new_lines" | sudo -u "$user" -- tee -a "$user_bashrc"
echo "INFO: .bashrc for user <$user> merged succesfully"
fi
else
elif ! cmp -s "$MIAOU_BASH_DIR"/etc/skel/.bashrc "$user_bashrc"; then
local backup="$user_bashrc".ORIGINAL
sudo -u "$user" -- mv "$user_bashrc" "$backup"
sudo -u "$user" -- cp "$MIAOU_BASH_DIR"/etc/skel/.bashrc "$user_bashrc"