Commit c47a76a Alex Wilson
committed
1 parent a567b07 commit c47a76a Copy full SHA for c47a76a
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,18 @@ while true; do
11
11
/usr/bin/osascript -e ' display dialog "Please insert your YubiKey and press OK"'
12
12
13
13
# XXX: we just take the first one we see?
14
- while IFS=: read rdrname guid chuid ykpiv; do
14
+ while IFS=: read rdrname guid chuid ykpiv _ ; do
15
15
# check it's been set up with a CHUID
16
16
if [[ " $chuid " == " false" && " $ykpiv " == " true" ]]; then
17
17
# if it hasn't set up a basic one + 9e key so we can pin it.
18
18
# the user can do the rest with pivy-tool later.
19
- $bindir /pivy-tool -g $guid init
19
+ $bindir /pivy-tool -g 00000000 init
20
20
# "init" changes the guid
21
- guid=$( $bindir /pivy-tool list -p | \
21
+ guid=$( $bindir /pivy-tool -p list | \
22
22
/usr/bin/grep " $rdrname " | /usr/bin/awk -F: ' {print $2}' )
23
23
$bindir /pivy-tool -g $guid -a eccp256 generate 9e
24
+ elif [[ " $chuid " == " false" ]]; then
25
+ continue
24
26
fi
25
27
cak=" $( $bindir /pivy-tool -g $guid pubkey 9e) "
26
28
You can’t perform that action at this time.
0 commit comments