Skip to content

Commit

Permalink
update Missing Flag From Dnf Install (#5310)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxMiguelSilva authored May 5, 2022
1 parent ca12c85 commit ea1d7dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ hasInstallCommandWithoutFlag(command) = c {
}

hasYesFlag(command) {
regex.match("\\b(dnf *install (-y|-[\\D]{1}y|-y[\\D]{1}|-yes|--assumeyes))\\b [\\w\\W]*", command)
regex.match("\\b(microdnf|dnf *install (-y|-[\\D]{1}y|-y[\\D]{1}|-yes|--assumeyes))\\b [\\w\\W]*", command)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM fedora:27
RUN microdnf install -y \
openssl-libs-1:1.1.1k-6.el8_5.x86_64 \
zlib-1.2.11-18.el8_5.x86_64 \
&& microdnf clean all

0 comments on commit ea1d7dd

Please sign in to comment.