Browse Source

Updated to handle files with spaces in names

Samuel W. Flint 6 years ago
parent
commit
507d48d308
1 changed files with 2 additions and 2 deletions
  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