We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c31612 commit 434936eCopy full SHA for 434936e
modules/singleton-jdk/configure.sh
@@ -13,8 +13,4 @@ fi
13
14
# Clean up any java-* packages that have been installed that do not match
15
# our stated JAVA_VERSION-JAVA_VENDOR (e.g.: 11-openjdk; 1.8.0-openj9)
16
-rpm -qa java-\* | while read pkg; do
17
- if ! echo "$pkg" | grep -q "^java-${JAVA_VERSION}-${JAVA_VENDOR}"; then
18
- rpm -e --nodeps "$pkg"
19
- fi
20
-done
+rpm -e --nodeps $(rpm -qa java-* | grep -v "^java-${JAVA_VERSION}-${JAVA_VENDOR}")
0 commit comments