diff /etc/skel/.bashrc

This commit is contained in:
pvincent
2026-08-20 16:18:25 +04:00
parent caf1588983
commit 38b283c63c
+1 -1
View File
@@ -37,7 +37,7 @@ function fix_users_bashrc {
cmp -s "$user_bashrc" /etc/skel/.bashrc && next
local first_change
first_change=$(diff /etc/skel/.bashrc "$user" | head -n1)
first_change=$(diff /etc/skel/.bashrc "$user_bashrc" | head -n1)
if [[ $first_change =~ $appended_regex ]]; then
sudo -u "$user" -- cp "$MIAOU_BASH_DIR"/etc/skel/.bashrc "$user_bashrc"