Open kpym opened 1 year ago
When I run the following script on Windows, it is fine:
ip = `curl -s https://api.ipify.org?format=json | jq -rj .ip` echo("your ip " + ip)
But when I run it with quotes, like in the original script, it returns nothing. Event when I try the following commands, the ip.ok is false:
ip.ok
false
curl -s 'https://api.ipify.org?format=json' | jq -rj ".ip"
curl -s 'https://api.ipify.org?format=json'
curl -s "https://api.ipify.org?format=json"
So I think there is a problem with quoted arguments on Windows.
When I run the following script on Windows, it is fine:
But when I run it with quotes, like in the original script, it returns nothing. Event when I try the following commands, the
ip.ok
isfalse
:curl -s 'https://api.ipify.org?format=json' | jq -rj ".ip"
curl -s 'https://api.ipify.org?format=json'
curl -s "https://api.ipify.org?format=json"
So I think there is a problem with quoted arguments on Windows.