Merge pull request #41 from StevenShi-23/master

fix xdg-open not found error on MacOS
This commit is contained in:
Haris Iqbal
2019-07-30 11:19:11 +02:00
committed by GitHub
+5 -2
View File
@@ -7,5 +7,8 @@ pdflatex $1.tex
rm *.aux *.log *.vscodeLog rm *.aux *.log *.vscodeLog
rm *.tex rm *.tex
xdg-open $1.pdf if [[ "$OSTYPE" == "darwin"* ]]; then
open $1.pdf
else
xdg-open $1.pdf
fi