diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 19:01:38 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 19:01:38 -0500 |
commit | 03cf0966b1fbaefa434b706a65ff6d2d1479f0fd (patch) | |
tree | a5c0c2f88bfa0bb9e71fb018d7086e59d2ff7919 /src/share/ma/add_certifier | |
parent | 6c048ca2dc8ca4ae7708ce8ee5c578ab4ed73c8b (diff) |
fix arg parsing in add_certifier to allow of - for stdin read.
Diffstat (limited to 'src/share/ma/add_certifier')
-rw-r--r-- | src/share/ma/add_certifier | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/share/ma/add_certifier b/src/share/ma/add_certifier index 024255f..e2df1d3 100644 --- a/src/share/ma/add_certifier +++ b/src/share/ma/add_certifier @@ -51,6 +51,9 @@ while true ; do depth="$2" shift 2 ;; + -) + break + ;; *) if [ "$(echo "$1" | cut -c 1)" = '-' ] ; then failure "Unknown option '$1'. @@ -83,6 +86,7 @@ if [ -f "$keyID" -o "$keyID" = '-' ] ; then fi # check the key is ok as monkeysphere user before loading + log debug "checking keys in file..." fingerprint=$(su_monkeysphere_user \ ". ${SYSSHAREDIR}/common; list_primary_fingerprints" < "$keyID") |