diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-08 11:37:22 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-08 11:37:22 +0100 |
| commit | 57af7dac30177defb247a3036008cbff07b2be3e (patch) | |
| tree | c7970f047ba78d576e3645f571f7734d6b98204f /extension/otp.bash | |
| parent | b560a593f21feaba1e4b4c11a8adc50c1a84281d (diff) | |
Add proper license notices and credits
Diffstat (limited to 'extension/otp.bash')
| -rwxr-xr-x | extension/otp.bash | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/extension/otp.bash b/extension/otp.bash index 62045bb..cca88d8 100755 --- a/extension/otp.bash +++ b/extension/otp.bash @@ -1,7 +1,24 @@ #!/bin/bash - -# The OTP parsing code was taken from pass-otp - +# +# Copyright (C) 2023 Federico Angelilli <mail@fedang.net> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +# The work that is used or that has inspired this project is credited +# in the CREDITS file. + +# The parsing code was adapted from pass-otp _otp_parse() { urldecode() { local url_encoded="${1//+/ }" |
