Browse Source

Updated to handle files with spaces in names

Samuel W. Flint 6 năm trước cách đây
mục cha
commit
507d48d308
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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