1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-25 06:36:42 +00:00

Move podsync script from fish to .local/bin

This commit is contained in:
Phantop 2020-08-21 16:30:11 -04:00
parent 355f55f28c
commit e6484bb7db
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +0,0 @@
function podsync
cd $D/Videos/YouTube/
./clean
tmux new -s 1 -d "command podsync -c $D/Videos/YouTube/config.toml"
end

8
.local/bin/podsync Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
cd $D/Videos/YouTube/
for f in */*.mp4; do
grep -q "$f" *.xml || rm "$f"
done
tmux new -s 1 -d "podsync-bin -c $D/Videos/YouTube/config.toml"