0ba5cb31b4
this removes yq command and uses grep and awk to get port
5 lines
128 B
Bash
5 lines
128 B
Bash
#!/bin/bash
|
|
|
|
PORT=$(grep '^port:' example.yml | awk 'NR==1{print $2; exit}')
|
|
curl -s -S -o /dev/null "http://localhost:${PORT}"
|