prevent multiple entries in bakkedup-desktop-files
This commit is contained in:
parent
e39a6220c5
commit
c5dff9f46d
|
@ -46,11 +46,13 @@ fixfiles() {
|
||||||
[ -f "$pacman_local/$name" ] ||
|
[ -f "$pacman_local/$name" ] ||
|
||||||
[ -f "$pacman_global/$name" ] ||
|
[ -f "$pacman_global/$name" ] ||
|
||||||
[ -f "$snap/$name" ] ||
|
[ -f "$snap/$name" ] ||
|
||||||
mv "$file" "$file.bak" && echo "$line" >> "$data2"
|
{ mv "$file" "$file.bak" && echo "$line" >> "$data2"; }
|
||||||
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"
|
||||||
|
|
||||||
|
[ -n "$(sort "$data2" | uniq -d)" ] && cp "$data2" "$tmp" && sort "$tmp" | uniq > "$data2"
|
||||||
|
|
||||||
for bakfile in "$user"/*.desktop.bak; do
|
for bakfile in "$user"/*.desktop.bak; do
|
||||||
origfile="${bakfile%.bak}"
|
origfile="${bakfile%.bak}"
|
||||||
[ -f "$origfile" ] && continue
|
[ -f "$origfile" ] && continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user