From 35460dab6dc8d76b0977318cae73c4e41b0e4d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 4 Oct 2021 14:16:37 +0200 Subject: [PATCH] fix wrong parameter expansion --- functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.sh b/functions.sh index 96027c9..9fe02c3 100755 --- a/functions.sh +++ b/functions.sh @@ -858,12 +858,12 @@ token(){ token-extract-pubkey() { 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 - token-list-objects + token-list-objects >&2 fi else - echo "Please insert token. Exit" + echo "Please insert token. Exit" >&2 return 1 fi }