From dfb1f44cbe20dbcc27c7929bdc87765be4d78b04 Mon Sep 17 00:00:00 2001 From: rokosun Date: Tue, 20 Sep 2022 01:09:11 +0200 Subject: [PATCH] small bug fixes --- bin/periodic/fix-tweaked-desktop-files | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/periodic/fix-tweaked-desktop-files b/bin/periodic/fix-tweaked-desktop-files index a15a6d4..b19f1e7 100755 --- a/bin/periodic/fix-tweaked-desktop-files +++ b/bin/periodic/fix-tweaked-desktop-files @@ -42,7 +42,7 @@ fixfiles() { [ -f "$flatpak_global/$name" ] || [ -f "$flatpak_local/$name" ] || [ -f "$snap/$name" ] || - mv "$file" "$bakdir/$file.bak" + mv "$file" "$bakdir/$name.bak" done < "$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") done +detectfiles +fixfiles + while read -r line; do if [ "$line" = "$user/" ]; then detectfiles