Compare commits
2 Commits
d56fc7627b
...
21b0d7f704
Author | SHA1 | Date | |
---|---|---|---|
21b0d7f704 | |||
1b93906376 |
|
@ -46,7 +46,7 @@ fixfiles() {
|
|||
mv "$file" "$bakdir/$name.bak"
|
||||
done < "$data"
|
||||
|
||||
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data"
|
||||
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort -u "$tmp" > "$data"
|
||||
|
||||
for bakfile in "$bakdir"/*.desktop.bak; do
|
||||
name=$(basename "${bakfile%.bak}") || continue
|
||||
|
@ -61,9 +61,8 @@ fixfiles() {
|
|||
done
|
||||
}
|
||||
|
||||
existing_dirs=()
|
||||
for dir in "$user" "$pacman_global" "$pacman_local" "$flatpak_global" "$flatpak_local" "$snap"; do
|
||||
[ -d "$dir" ] && existing_dirs=("${existing_dirs[@]}" "$dir")
|
||||
[ -d "$dir" ] && existing_dirs+=("$dir")
|
||||
done
|
||||
|
||||
detectfiles
|
||||
|
|
Loading…
Reference in New Issue
Block a user