mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Add a supplied() function
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
99728d5695
commit
774aac1228
@ -51,6 +51,7 @@ our @EXPORT = qw(
|
|||||||
progress_message_nocompress
|
progress_message_nocompress
|
||||||
progress_message2
|
progress_message2
|
||||||
progress_message3
|
progress_message3
|
||||||
|
supplied
|
||||||
read_action_param
|
read_action_param
|
||||||
set_action_param
|
set_action_param
|
||||||
);
|
);
|
||||||
@ -1299,6 +1300,15 @@ sub split_list1( $$ ) {
|
|||||||
@list2;
|
@list2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Determine if a value has been supplied
|
||||||
|
#
|
||||||
|
sub supplied( $ ) {
|
||||||
|
my $val = shift;
|
||||||
|
|
||||||
|
defined $val && $val ne '';
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Pre-process a line from a configuration file.
|
# Pre-process a line from a configuration file.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user