From bdfbd51d7b1b89c3dbfa46670ee2e3979e2cb905 Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Thu, 1 Feb 2018 17:59:17 -0600 Subject: [PATCH] Fix format string in printf I knew this was hanging out there, but Antagoynm found it before I was able to resolve it. There was a message from shellcheck regarding this one: SC2059: Don't use variables in the printf format string. Use printf "..%s.." "$foo". Should resolve #181 Signed-off-by: Eric F Crist --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 7b227e5..ae946f0 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -479,7 +479,7 @@ current CA keypair. If you intended to start a new CA, run init-pki first." echo if [ "$kpass" = "$kpass2" ]; then - printf "$kpass" > "$out_key_pass_tmp" + printf "%s" "$kpass" > "$out_key_pass_tmp" else die "Passphrases do not match." fi