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:
parent
7d8d529e80
commit
b761967f95
1 changed files with 1 additions and 1 deletions
2
sh/burl
2
sh/burl
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue