fix xdg-open not found error on MacOS
This commit is contained in:
1 parent
ccb9a4791a
commit
fb2b1376b1
1 file changed
+5
-2
+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