move bin to .local/bin

This commit is contained in:
2023-09-15 15:46:04 -04:00
parent 8dbe941cb1
commit eac52f77d4
17 changed files with 244 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
for i in $(seq 1 60); do
if [ "$(find . -name "$i *" | wc -l)" = 2 ]; then
first_track="$(find . -name "$i *" | head -n1)"
last_track="$(find . -name "$i *" | tail -n1)"
first_acoustid="$(exiftool "$first_track" | rg Acoustid)"
last_acoustid="$(exiftool "$last_track" | rg Acoustid)"
if [ "$first_acoustid" = "$last_acoustid" ]; then
if [ "$first_track" != "$last_track" ]; then
rm "$first_track"
fi
fi
fi
done