/ live_got_test.sh
live_got_test.sh
1 #!/bin/sh 2 3 PW="$(op item get got-test --reveal --field password)" 4 5 echo "test one two three" > /tmp/test 6 7 curl --basic --user got:${PW} --data-urlencode file@/tmp/test -o - "https://suah.dev/_got" 8 curl -X POST -H "Content-Type: application/json" --data @test_body.json --basic --user got:${PW} -o - "https://suah.dev/_got/v2" 9