aboutsummaryrefslogtreecommitdiff
path: root/otp.bash
diff options
context:
space:
mode:
Diffstat (limited to 'otp.bash')
-rwxr-xr-xotp.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/otp.bash b/otp.bash
index 16d0ef4..7d42f66 100755
--- a/otp.bash
+++ b/otp.bash
@@ -59,7 +59,8 @@ otp_parse_uri() {
[[ -z $otp_accountname ]] && die "Invalid key URI (missing accountname): $otp_uri"
local p=${BASH_REMATCH[7]}
- local IFS=\&; local params=(${p[@]}); unset IFS
+ local params
+ local IFS=\&; read -r -a params <<< "$p"; unset IFS
pattern='^(.+)=(.+)$'
for param in "${params[@]}"; do