fix user .bashrc has forked
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user