commit e77bad9

hovercats  ·  2023-02-24 04:56:46 +0000 UTC
parent ae48c60
dpdf: fix for filenames with spaces in
1 files changed,  +4, -2
+4, -2
 1@@ -10,7 +10,9 @@ cd $DIR
 2 
 3 switch($1) {
 4 case -d
 5-	rm -rf `{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
 6+	sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
 7+	rm -rf $"sel
 8 case *
 9-	mupdf `{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'View:'}
10+	sel=`{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'View:'}
11+	mupdf $"sel
12 }