poolpog / bash-otp

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

RFC: Add binary location independent wrapper and installer #12

Closed prahal closed 1 month ago

prahal commented 1 year ago

This adds a wrapper around otp.sh that when linked to another location calls otp.sh with its install location. That is when you link otp to a directory in your PATH you can call "otp" and have it resolve the token location (otp wrapper has to be still located in the same directory as otp.sh and tokenfiles). The Makefile is pretty bare as it only link the otp wrapper in the user $HOME/.local/bin location. From https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html this directory should be in the PATH of user sessions already. Still user might want to "install" otp to other location.

prahal commented 1 year ago

Also, I did not add the "make install" instruction to the README.

prahal commented 1 month ago

May I ask why this PR was rejected?