diff /etc/skel/.bashrc
This commit is contained in:
+2
-2
@@ -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
|
[[ ! -f "$user_bashrc" ]] && continue
|
||||||
cmp -s "$user_bashrc" /etc/skel/.bashrc && next
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user