summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 14:26:49 +0200
committerErich Eckner <git@eckner.net>2019-09-02 14:26:49 +0200
commitd4242c703427105147acf000c253c09709455ef1 (patch)
tree9bb26d1da03fdf5e792a23c01341a86fcf117ebf
parentad912197ef90951fc6fb8414032827cbaf933e41 (diff)
downloadsimple-pki-d4242c703427105147acf000c253c09709455ef1.tar.xz
sign-request: still requires remove_leading_spaces()
-rwxr-xr-xsign-request.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/sign-request.in b/sign-request.in
index 1150fbd..954789e 100755
--- a/sign-request.in
+++ b/sign-request.in
@@ -6,6 +6,14 @@ fi
cd "${0%/*}"
+remove_leading_spaces() {
+ sed '
+ s/^ \{'"$1"'\}//
+ t
+ d
+ '
+}
+
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT