wm: infra

Download patch

ref: ddd839ff7cfa099f8c363d9c790a9ef10026b52c
parent: fb35068222c5b2d1c363fa73396685fa99a79455
author: mkf <mkf@cloud9p.org>
date: Fri Feb 9 05:27:47 EST 2024

getaudio: only download if file doesnt exist

--- a/getaudio
+++ b/getaudio
@@ -9,5 +9,6 @@
 url = $1
 file = `{basename $1}
 plist = ./plist
-
-hget -o $file $url && {echo $url >> $plist && audio/mkplist $file >> $plist}
+if(! test -f $file){
+	hget -o $file $url && {echo $url >> $plist && audio/mkplist $file >> $plist}
+}