commit fdcd75761394358918020a22cf6d9b7668b297bf
parent 7686f0b985c505befb10213a7ec8b096a5a61b97
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 14 May 2014 21:20:46 +0200
remove old file if it exists
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.config/dwb/userscripts/youtube-mplayer b/.config/dwb/userscripts/youtube-mplayer
@@ -3,5 +3,6 @@
tmpdir=~/tmp
tmpfile=youtube.mp4
mkdir -p $tmpdir
+rm -rf $tmpdir/$tmpfile
youtube-dl --output $tmpdir/$tmpfile $DWB_URI > $tmpdir/youtube-dl.log 2>&1
mplayer $tmpdir/$tmpfile >> $tmpdir/youtube-dl.log 2>&1