Compare commits

..

No commits in common. "21b0d7f7040f6385d81a9bc59c13e124e3eab356" and "d56fc7627b8a51cf66f9ce4099cacd4124e015a7" have entirely different histories.

View File

@ -46,7 +46,7 @@ fixfiles() {
mv "$file" "$bakdir/$name.bak" mv "$file" "$bakdir/$name.bak"
done < "$data" done < "$data"
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort -u "$tmp" > "$data" [ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data"
for bakfile in "$bakdir"/*.desktop.bak; do for bakfile in "$bakdir"/*.desktop.bak; do
name=$(basename "${bakfile%.bak}") || continue name=$(basename "${bakfile%.bak}") || continue
@ -61,8 +61,9 @@ fixfiles() {
done done
} }
existing_dirs=()
for dir in "$user" "$pacman_global" "$pacman_local" "$flatpak_global" "$flatpak_local" "$snap"; do for dir in "$user" "$pacman_global" "$pacman_local" "$flatpak_global" "$flatpak_local" "$snap"; do
[ -d "$dir" ] && existing_dirs+=("$dir") [ -d "$dir" ] && existing_dirs=("${existing_dirs[@]}" "$dir")
done done
detectfiles detectfiles