aboutsummaryrefslogtreecommitdiff
path: root/contrib/libfido2/tools/fido2-detach.sh
blob: 140278fc69936ae40d227b932f6d6e5449efd4e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Copyright (c) 2020 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause

DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"

while [ -n "${DEV}" ]; do
	sleep .5
	DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
done