diff options
| author | Jan Pokorný <jpokorny@redhat.com> | 2013-04-18 16:44:41 +0200 |
|---|---|---|
| committer | Jan Pokorný <jpokorny@redhat.com> | 2013-04-18 16:44:41 +0200 |
| commit | a87f7ab0aba04505bc6fc549fb90e51b6e9a6fd3 (patch) | |
| tree | 0cfc9f178bc36b23d5220084b57a37600af9a59e /scripts | |
| parent | a4437b2dfa51c83d64ede28b2d5199f8766cfad1 (diff) | |
| download | dotfiles-a87f7ab0aba04505bc6fc549fb90e51b6e9a6fd3.tar.gz dotfiles-a87f7ab0aba04505bc6fc549fb90e51b6e9a6fd3.tar.xz dotfiles-a87f7ab0aba04505bc6fc549fb90e51b6e9a6fd3.zip | |
Fix cert scripts not working properly
In fact, why "tee" fixed it is a mystery for me
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/certs/cert-check | 1 | ||||
| -rwxr-xr-x | scripts/certs/cert-import | 16 |
2 files changed, 10 insertions, 7 deletions
diff --git a/scripts/certs/cert-check b/scripts/certs/cert-check index fe015ed..4bf9fc5 100755 --- a/scripts/certs/cert-check +++ b/scripts/certs/cert-check @@ -168,6 +168,7 @@ setup() { teardown() { ${RESTOREUMASK} unset RESTOREUMASK + unset vercmd return $1 } diff --git a/scripts/certs/cert-import b/scripts/certs/cert-import index 8e2bad5..46e2fe0 100755 --- a/scripts/certs/cert-import +++ b/scripts/certs/cert-import @@ -57,15 +57,16 @@ cert_import() { [ "$1" = "-nocrl" ] && shift && crl=0 ( cert_pick "$@" | cert_check $crl \ - | tee >( openssl x509 \ - | tee >(cert_import_homebundle $homebundle) \ - | tee >(cert_import_firefox $firefox) \ - | cert_import_mutt $mutt ) \ - | tee >( openssl crl \ - | cert_import_homebundle $homebundle) + | tee >(openssl x509 \ + | tee >(cert_import_homebundle $homebundle) \ + | tee >(cert_import_firefox $firefox) \ + | tee >(cert_import_mutt $mutt)) \ + | tee >(openssl crl \ + | tee >(cert_import_homebundle $homebundle)) ) |& colorize 1 } +# see cert-check #setup() { # set -u # RESTOREUMASK=$(umask -p) @@ -85,4 +86,5 @@ cert_import() { && echo "usage: $0" \ "(homebundle|mutt|firefox|all)*" \ "[-nocrl] file-or-server [port=443]" \ - || { setup; cert_import "$@"; teardown $?; }; } + || { setup; cert_import "$@"; teardown $?; }; + } |
