summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-05-06 20:18:17 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-05-06 20:18:17 +0200
commit6f931fa0babf61ea24d47e85ea9439eaa0ae5afc (patch)
tree7dd5b5abf71b022d1c74446e01cd68b71bb7b8d4 /scripts
parent968e34a6db6c76a42f0a684ac5fdfb9a9b0d1113 (diff)
downloaddotfiles-6f931fa0babf61ea24d47e85ea9439eaa0ae5afc.tar.gz
dotfiles-6f931fa0babf61ea24d47e85ea9439eaa0ae5afc.tar.xz
dotfiles-6f931fa0babf61ea24d47e85ea9439eaa0ae5afc.zip
Fix cert script: guess_cmd was not recognized in spawned bash
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/certs/cert-check3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/certs/cert-check b/scripts/certs/cert-check
index 4bf9fc5..f1774c0 100755
--- a/scripts/certs/cert-check
+++ b/scripts/certs/cert-check
@@ -37,12 +37,13 @@ vercmd2cmd() {
}
guess_cmd() {
- echo "YYYYYYY $1" >>/tmp/test
case "$(basename "$1")" in
crl*|revoke*|*crl) echo "crl";;
*crt|*) echo "x509";;
esac
}
+# export because it is used in a separate bash invocation
+export -f guess_cmd
cert_pick_file() {
[[ "$1" =~ .*://.* ]] && return 1