1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-12-21 21:49:40 -08:00

burl: fix websocat fallback

This commit is contained in:
Connor Olding 2024-12-05 04:25:11 -08:00
parent 7d8d529e80
commit b761967f95

View file

@ -49,7 +49,7 @@ burl() ( ### @-
elif socat /dev/null /dev/null
then wrapped() { process socat - "TCP:$1:$2" ;}
elif websocat; [ $? = 1 ]
then wrapped() { websocat --binary - "tcp:$1:$2" ;}
then wrapped() { process websocat --binary - "tcp:$1:$2" ;}
elif curl; [ $? = 2 ]
then wrapped() { process curl "telnet://$1:$2" ;}
else return 127