Merge pull request #41 from StevenShi-23/master
fix xdg-open not found error on MacOS
This commit is contained in:
+5
-2
@@ -7,5 +7,8 @@ pdflatex $1.tex
|
||||
rm *.aux *.log *.vscodeLog
|
||||
rm *.tex
|
||||
|
||||
xdg-open $1.pdf
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
open $1.pdf
|
||||
else
|
||||
xdg-open $1.pdf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user