diff options
author | Tad Fisher <tadfisher@gmail.com> | 2018-01-21 18:40:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 18:40:02 -0800 |
commit | fd083fab36330f54260034b5bbe6ce1d9ee44b51 (patch) | |
tree | 9e70dbad09bf5578f94957eb75eada2876c2ff35 /otp.bash | |
parent | 7e54497f8889427cfaad5893b265309a7b60dfc7 (diff) |
Fix Travis (#47)
* Install shellcheck manually
* Use `read` instead of built-in glob splitting
Diffstat (limited to 'otp.bash')
-rwxr-xr-x | otp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |