Skip to content

Commit

Permalink
Merge pull request #19925 from ricardobranco777/ncat
Browse files Browse the repository at this point in the history
containers: Do not install ncat if already installed
  • Loading branch information
ricardobranco777 authored Aug 10, 2024
2 parents 25250bd + 475c2c5 commit cdb4545
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/containers/bats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ use registration qw(add_suseconnect_product get_addon_fullname);
our @EXPORT = qw(install_bats install_htpasswd install_ncat remove_mounts_conf switch_to_user delegate_controllers enable_modules patch_logfile);

sub install_ncat {
return if (script_run("rpm -q ncat") == 0);

my $ncat_version = get_required_var("NCAT_VERSION");

assert_script_run "rpm -vhU https://nmap.org/dist/ncat-$ncat_version.x86_64.rpm";
Expand Down

0 comments on commit cdb4545

Please sign in to comment.