diff options
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-x | share/hydractl/sync-media | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 0bad6f0..f3cd973 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -54,9 +54,11 @@ function sync_media_add { # Add meta files, making sure they're handled directly by Git function sync_media_add_metadata { - # Playlist files - find -name '*.m3u' -type l -exec git annex unlock {} \; - find -name '*.m3u' -exec git add {} \; + # Playlist files in the playlist folder + if [ -d "playlists" ]; then + find playlists -name '*.m3u' -type l -exec git annex unlock {} \; + find playlists -name '*.m3u' -exec git add {} \; + fi # Koreader metadata files find -name metadata.pdf.lua -type l -exec git annex unlock {} \; |