We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d7988 commit febc0ceCopy full SHA for febc0ce
1 file changed
.github/workflows/cibuild-setup-ubuntu.sh
@@ -41,7 +41,9 @@ PACKAGES_OPTIONAL=(
41
if [[ "$QEMU_USER" != "1" ]]; then
42
MODULES_PACKAGE="linux-modules-extra-$(uname -r)"
43
# may not exist anymore
44
- if apt-cache show "$MODULES_PACKAGE" >/dev/null 2>&1; then
+ APT_CACHE_OUTPUT=$(apt-cache show "$MODULES_PACKAGE")
45
+ APT_CACHE_STATUS=$?
46
+ if [[ "${APT_CACHE_STATUS}" == 0 && -n "${APT_CACHE_OUTPUT}" ]]; then
47
PACKAGES+=("$MODULES_PACKAGE")
48
fi
49
0 commit comments