updated spotify_delete_from_playlist_if_in_other_playlists.sh

pull/16/head
Hari Sekhon 2 years ago
parent b984f03f55
commit c9641e2897

@ -46,7 +46,15 @@ export SPOTIFY_PRIVATE=1
spotify_token spotify_token
# BSD grep has a bug in grep -f, rely on GNU grep instead
if is_mac; then
grep(){
command ggrep "$@"
}
fi
for playlist in "$@"; do for playlist in "$@"; do
"$srcdir/spotify_playlist_tracks_uri.sh" "$playlist" "$srcdir/spotify_playlist_tracks_uri.sh" "$playlist"
done | done |
grep -f <("$srcdir/spotify_playlist_tracks_uri.sh" "$playlist_to_delete_from") |
"$srcdir/spotify_delete_from_playlist.sh" "$playlist_to_delete_from" "$srcdir/spotify_delete_from_playlist.sh" "$playlist_to_delete_from"

Loading…
Cancel
Save