aecb137 fkinit: Allow to pass the OTP token via $FKINIT_OTP

1 file Authored by churchyard 2 months ago, Committed by sgallagh 2 months ago,
1 file changed. 1 lines added. 1 lines removed.
    fkinit: Allow to pass the OTP token via $FKINIT_OTP
    
    This allows me to run:
    
        $ FKINIT_OTP=$(ykman oath accounts code accounts.fedoraproject.org --single) fkinit
    
    I can even alias this:
    
        $ alias fkinit='FKINIT_OTP=$(ykman oath accounts code accounts.fedoraproject.org --single) fkinit'
    
    And the invocation then looks like this:
    
        $ fkinit
        Touch your YubiKey...
        🔐 FAS password: (press TAB for no echo)
    
    Signed-off-by: Miro Hrončok <miro@hroncok.cz>
    
        
file modified
+1 -1