bin/demlo-sync: Wrapper to sync music to external device

master
Pierre Neidhardt 2018-02-26 23:12:02 +01:00
parent fa39eaf57d
commit 42f866c0f7
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
help("Set 'pathsub' to be VFAT friendly. See path.lua.")
pathsub = {{'["*?:/\|<>]', ""}}

7
.local/bin/demlo-sync Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
path='lib="/media/COWON S9/Music"'
if [ ! -d "/media/COWON S9/Music" ]; then
path='lib="/run/media/'$(id -nu)'/COWON S9/Music"'
fi
demlo -p -exist skip -r '' -pre "$path" -s 59-path-sync -s 60-path "$@"