Merge pull request #41 from StevenShi-23/master

fix xdg-open not found error on MacOS
This commit is contained in:
Haris Iqbal authored and GitHub committed 2019-07-30 11:19:11 +02:00
commit 40801a8148
1 file changed
+5 -2
+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