Hide the 1password login error

Avoid outputting this login error message, it wasn't an error and you
don't need to follow those instructions.

```
[ERROR] 2024/09/11 11:57:08 You are not currently signed in. Please run `op signin --help` for instructions
```
This commit is contained in:
Donal McBreen
2024-09-11 12:02:53 +01:00
parent 63d0b5ddfa
commit aa630f156a
2 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ class Kamal::Secrets::Adapters::OnePassword < Kamal::Secrets::Adapters::Base
end
def loggedin?(account)
`op account get --account #{account.shellescape}`
`op account get --account #{account.shellescape} 2> /dev/null`
$?.success?
end