]> git.sev.monster Git - dotfiles.git/blame_incremental - bin/ykman-oath-reload
remove syncthing shim
[dotfiles.git] / bin / ykman-oath-reload
... / ...
CommitLineData
1#!/bin/zsh
2read -s 'p?Password:'$'\n'
3typeset -a oath
4echo OATH URIs:
5while read -r x; do
6 [[ -z $x ]] && break
7 oath+=($x)
8done
9for 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
16done
17# vim: sts=4 sw=4 et
This page took 0.029953 seconds and 4 git commands to generate.