FAQ | This is a LIVE service | Changelog

Commit e2af81df authored by Tony Finch's avatar Tony Finch

regpg: return exit status from dnssec-settime

parent 127d8cee
......@@ -141,8 +141,8 @@ sub vsystem {
}
sub vsystem_warn {
eval { vsystem @_ };
return $?;
eval { vsystem @_};
return $? >> 8;
}
sub canexec {
......@@ -553,8 +553,9 @@ sub dnssec_settime {
spewto "$key.private", pipeslurp @gpg_de, "$key.private.asc"
unless $inclear;
umask $umask;
vsystem_warn 'dnssec-settime', @ARGV;
return $inclear ? dnssec_encrypt $key : dnssec_shred $key;
my $status = vsystem_warn 'dnssec-settime', @ARGV;
$inclear ? dnssec_encrypt $key : dnssec_shred $key;
return $status;
}
########################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment