]>
Commit | Line | Data |
---|---|---|
79d4a356 | 1 | #!/bin/zsh |
2 | read -s 'p?Password:'$'\n' | |
3 | typeset -a oath | |
4 | echo OATH URIs: | |
5 | while read -r x; do | |
6 | [[ -z $x ]] && break | |
7 | oath+=($x) | |
8 | done | |
9 | for x in $(ykman list --serials); do | |
10 | ykman -d $x oath accounts list -Hp $p | while read -r y; do | |
11 | ykman -d $x oath accounts delete -fp $p ${y/%$'\r'} | |
12 | done | |
13 | for y in "$oath[@]"; do | |
14 | ykman -d $x oath accounts uri -fp $p $y | |
15 | done | |
16 | done |