diff options
author | Colin Watson <cjwatson@debian.org> | 2020-09-20 17:48:15 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-09-20 17:48:15 +0100 |
commit | 05fa6dd7724ccfd1c183e6e4bf9d22eb12abea8c (patch) | |
tree | 71d3eccc33c93c230b021c72f1fb9cf2247bf6c0 /tools/fido2-attach.sh | |
parent | b77d6ed4d47acbc836f05be0e9f4abeb104e21ff (diff) | |
parent | 173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (diff) |
Update upstream source from tag 'upstream/1.5.0'
Update to upstream version '1.5.0'
with Debian dir 102fd7ed15b138200444754d256b136933185ec2
Diffstat (limited to 'tools/fido2-attach.sh')
-rwxr-xr-x | tools/fido2-attach.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/fido2-attach.sh b/tools/fido2-attach.sh new file mode 100755 index 0000000..d4bc449 --- /dev/null +++ b/tools/fido2-attach.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Copyright (c) 2020 Yubico AB. All rights reserved. | ||
4 | # Use of this source code is governed by a BSD-style | ||
5 | # license that can be found in the LICENSE file. | ||
6 | |||
7 | DEV="" | ||
8 | |||
9 | while [ -z "${DEV}" ]; do | ||
10 | sleep .5 | ||
11 | DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')" | ||
12 | done | ||
13 | |||
14 | printf '%s\n' "${DEV}" | ||