Browse Source

diff /etc/skel/.bashrc

main
pvincent 2 weeks ago
parent
commit
bea24fac5b
  1. 4
      lib/initiate.bash

4
lib/initiate.bash

@ -33,8 +33,8 @@ function fix_users_bashrc {
build_associative_user_homes build_associative_user_homes
for user in "${!USER_HOMES[@]}"; do for user in "${!USER_HOMES[@]}"; do
local user_bashrc="${USER_HOMES[$user]}/.bashrc" local user_bashrc="${USER_HOMES[$user]}/.bashrc"
[[ ! -f "$user_bashrc" ]] && next
cmp -s "$user_bashrc" /etc/skel/.bashrc && next
[[ ! -f "$user_bashrc" ]] && continue
cmp -s "$user_bashrc" /etc/skel/.bashrc && continue
local first_change local first_change
first_change=$(diff /etc/skel/.bashrc "$user_bashrc" | head -n1) first_change=$(diff /etc/skel/.bashrc "$user_bashrc" | head -n1)

Loading…
Cancel
Save