mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
ready for terminal in app
This commit is contained in:
parent
0a98a34ab3
commit
e8f8bbb0e4
1 changed files with 4 additions and 6 deletions
|
@ -27,12 +27,10 @@ while ! curl -Is http://127.0.0.1:7860 | grep -q "HTTP/1.1 200 OK"; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# open the URL once the HEAD request succeeds
|
# open the URL once the HEAD request succeeds
|
||||||
# TODO open in a window controlled by the gui (see next section)
|
if test -n "$TEA_GUI"; then
|
||||||
open http://127.0.0.1:7860
|
echo '{"xyz.tea":{"gui":"http://127.0.0.1:7860"}}' >&2
|
||||||
|
else
|
||||||
# tell tea/gui about it
|
open "http://127.0.0.1:7860"
|
||||||
if test -n "$TEA_IPC_FD"; then
|
|
||||||
echo '{"viewer": "http://127.0.0.1:7860"}' >&$TEA_IPC_FD
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tea gum format <<EoMD
|
tea gum format <<EoMD
|
||||||
|
|
Loading…
Reference in a new issue