poolpog / bash-otp

One-time Password generator for CLI using bash, oathtool
MIT License
135 stars 24 forks source link

gawk: command not found + Base32 string is invalid #7

Open willsmanley opened 4 years ago

willsmanley commented 4 years ago

I have an encrypted file stripe.enc in the directory.

I get the following output when I run ./otp.sh stripe.

./otp.sh: line 14: gawk: command not found
./otp.sh: line 15: gawk: command not found
./otp.sh: line 16: gawk: command not found
Password: bad decrypt
4380221036:error:06FFF064:digital envelope routines:CRYPTO_internal:bad decrypt:/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-47.100.4/libressl-2.8/crypto/evp/evp_enc.c:521:

oathtool: base32 decoding failed: Base32 string is invalid

I have the required dependencies installed. Not sure where to start with this.

willsmanley commented 4 years ago

Fixed by running brew install gawk. Perhaps this should be added as a required dependency. I will leave this issue open so that the dependency requirement can be added.