From bd1c15516d598e60bf5b54e7df9ab268d1be0523 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 24 Sep 2009 11:06:33 -0400 Subject: [PATCH] pkcs2pem: Handle quoting properly. Signed-off-by: Anders Kaseorg --- certs/pkcs2pem | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/certs/pkcs2pem b/certs/pkcs2pem index 5b9caaa..513b32e 100755 --- a/certs/pkcs2pem +++ b/certs/pkcs2pem @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e @@ -40,7 +40,6 @@ EOF pem=$(readlink -f "$pem") -# No, this doesn't handle quoting properly. -echo HTTPS_CERT_FILE="$pem" -echo HTTPS_KEY_FILE="$pem" +printf 'HTTPS_CERT_FILE=%q\n' "$pem" +printf 'HTTPS_KEY_FILE=%q\n' "$pem" -- 2.45.0