mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-16 11:52:47 +00:00
Move podsync script from fish to .local/bin
This commit is contained in:
parent
355f55f28c
commit
e6484bb7db
|
@ -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
8
.local/bin/podsync
Executable 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"
|
Loading…
Reference in a new issue