New code for fix-tweaked-desktop-files #9
|
@ -42,7 +42,7 @@ fixfiles() {
|
||||||
[ -f "$flatpak_global/$name" ] ||
|
[ -f "$flatpak_global/$name" ] ||
|
||||||
[ -f "$flatpak_local/$name" ] ||
|
[ -f "$flatpak_local/$name" ] ||
|
||||||
[ -f "$snap/$name" ] ||
|
[ -f "$snap/$name" ] ||
|
||||||
mv "$file" "$bakdir/$file.bak"
|
mv "$file" "$bakdir/$name.bak"
|
||||||
done < "$data"
|
done < "$data"
|
||||||
|
|
||||||
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data"
|
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data"
|
||||||
|
@ -65,6 +65,9 @@ for dir in "$user" "$pacman_global" "$pacman_local" "$flatpak_global" "$flatpak_
|
||||||
[ -d "$dir" ] && existing_dirs=("${existing_dirs[@]}" "$dir")
|
[ -d "$dir" ] && existing_dirs=("${existing_dirs[@]}" "$dir")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
detectfiles
|
||||||
|
fixfiles
|
||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
if [ "$line" = "$user/" ]; then
|
if [ "$line" = "$user/" ]; then
|
||||||
detectfiles
|
detectfiles
|
||||||
|
|
Loading…
Reference in New Issue
Block a user