diff options
| author | Andinus <andinus@nand.sh> | 2020-06-17 21:27:06 +0530 |
|---|---|---|
| committer | Andinus <andinus@nand.sh> | 2020-06-17 21:27:06 +0530 |
| commit | c9ca5e242da4c38f5baab3c707121f97c8382047 (patch) | |
| tree | 6822e1ccb4dc03482e699ddc085f1adaf8fdc2d4 | |
| parent | 60da73fabbb1214fe053a7d13ebff71f729519f3 (diff) | |
| download | crux-c9ca5e242da4c38f5baab3c707121f97c8382047.tar.gz | |
Improve unveil debug message
| -rwxr-xr-x | crux.pl | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -20,18 +20,10 @@ require OpenBSD::Unveil if is_OpenBSD; sub unveil { if (is_OpenBSD) { - if ( $options{debug} ) { - # Check if defined because unveil can also be called blank - # to block it. - if ( defined($_[0]) and defined($_[1]) ) { - say LOCALCOLOR GREEN "Unveil :: $_[0] :: $_[1]"; - } else { - say LOCALCOLOR GREEN "Unveil :: Block"; - } - } + say LOCALCOLOR GREEN "Unveil :: @_" if $options{debug}; return OpenBSD::Unveil::unveil(@_); } else { - warn "Calling dummy unveil...\n" if $options{debug}; + warn "Dummy unveil :: @_\n" if $options{debug}; return 1; } } |