diff options
author | Erich Eckner <git@eckner.net> | 2019-09-02 14:26:49 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-02 14:26:49 +0200 |
commit | d4242c703427105147acf000c253c09709455ef1 (patch) | |
tree | 9bb26d1da03fdf5e792a23c01341a86fcf117ebf | |
parent | ad912197ef90951fc6fb8414032827cbaf933e41 (diff) | |
download | simple-pki-d4242c703427105147acf000c253c09709455ef1.tar.xz |
sign-request: still requires remove_leading_spaces()
-rwxr-xr-x | sign-request.in | 8 |
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 |