duck on Nostr: Would `set -o pipefail` work for the failure case here? I had to do something similar ...
Would `set -o pipefail` work for the failure case here? I had to do something similar when I wanted a command that would do something if the first part failed, but the first part was also being piped to `tee` (which was always passing)
Published at
2025-03-05 19:03:58Event JSON
{
"id": "f3e2f36f3640375982527161c540619732f039a9c069462c415c54d7ea10e542",
"pubkey": "47b38f4d3721390d5b6bef78dae3f3e3888ecdbf1844fbb33b88721d366d5c88",
"created_at": 1741201438,
"kind": 1,
"tags": [
[
"e",
"3433daff034ce41234e120ddb712767dd135618be04557407342e3d02ab31588",
"",
"root"
],
[
"p",
"beee28c6450eb5d21bf94279d1f3f41e524c87abf86393835b45e6a1e98390e7"
]
],
"content": "Would `set -o pipefail` work for the failure case here? I had to do something similar when I wanted a command that would do something if the first part failed, but the first part was also being piped to `tee` (which was always passing) ",
"sig": "03bd313f8f8510275f84ac42828ab93d2a7269a50dfe2a4caadb5dd34fcf534cdbec1c001ca800bf21d96647a40c10b51100a2c2cbb6c738335463f003b3fd49"
}