fix wrong parameter expansion
This commit is contained in:
parent
0653501a28
commit
35460dab6d
1 changed files with 3 additions and 3 deletions
|
@ -858,12 +858,12 @@ token(){
|
||||||
|
|
||||||
token-extract-pubkey() {
|
token-extract-pubkey() {
|
||||||
if pkcs11-tool --module $P11M --list-token-slots >&2 ;then
|
if pkcs11-tool --module $P11M --list-token-slots >&2 ;then
|
||||||
ssh-keygen -i -m pkcs8 -f <(pkcs11-tool --module $P11M -r --type pubkey ${1:---label} ${1} |openssl rsa -pubin -inform DER )
|
ssh-keygen -i -m pkcs8 -f <(pkcs11-tool --module $P11M -r --type pubkey ${1:+--label} ${1} |openssl rsa -pubin -inform DER )
|
||||||
if [ $? -gt 0 ] ; then
|
if [ $? -gt 0 ] ; then
|
||||||
token-list-objects
|
token-list-objects >&2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Please insert token. Exit"
|
echo "Please insert token. Exit" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue