瀏覽代碼

Updated to handle files with spaces in names

Samuel W. Flint 6 年之前
父節點
當前提交
507d48d308
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      open-pdf

+ 2 - 2
open-pdf

@@ -7,13 +7,13 @@ if [ $# -lt 1 ] ; then
 fi
 if [[ $# == 2 ]] ; then
     if [[ -e `which evince` ]] ; then
-        evince -p $2 $1
+        evince -p $2 "$1"
     else
         xpdf $1 $2
     fi
 else
     if [[ -e `which evince` ]] ; then
-        evince $1
+        evince "$1"
     else
         xpdf $1
     fi