fix xdg-open not found error on MacOS

This commit is contained in:
Ziji Shi (Steven)
2019-04-01 12:33:33 +08:00
parent ccb9a4791a
commit fb2b1376b1
+5 -2
View File
@@ -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