소스 검색

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