#!/bin/bash
for user in /home/*; do
[ $user == /home/lost+found ] && continue
d="$user/Desktop"
if [ ! -d "$d" ]; then
d="$user/Рабочий стол"
[ -d "$d" ] || continue
fi
install -m777 sources/{update,shutdown}.desktop "$d"
done