diff options
| author | Paul Buetow <paul@buetow.org> | 2023-08-13 13:35:40 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-08-13 13:35:40 +0300 |
| commit | 007f0d702907272018b3cf4ef8470145cd51decd (patch) | |
| tree | f1f57bebeef82e16cbe1b07a90e69f2b8f5eaffc /frontends/Rexfile | |
| parent | 161e1cf7f39a8cc964c08297c5bf23df9d1cefc1 (diff) | |
add perl modelines. remove filewalk
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index da679b2..8919a8c 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -55,27 +55,6 @@ our $is_primary = sub { $fqdns->($ipv4) eq 'blowfish.buetow.org'; }; -our $filewalk; -our $filewalk = sub { - my $dir = shift; - my @files; - - opendir my $dh, $dir or die $!; - while (my $entry = readdir $dh) { - next if $entry eq '.' or $entry eq '..'; - if (-d "$dir/$entry") { - push @files, $_ for $filewalk->("$dir/$entry"); - } elsif (-f "$dir/$entry") { - push @files, "$dir/$entry"; - } else { - Rex::Logger::info("Unsupported file type for $dir/$entry", 'error'); - } - } - closedir $dh; - - return @files; -}; - # The secret store. Note to myself: "geheim cat rexfilesecrets.txt" our $secrets = sub { read_file './secrets/' . shift }; |
