Skip to content

Commit febc0ce

Browse files
committed
TEMP
1 parent 98d7988 commit febc0ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/cibuild-setup-ubuntu.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ PACKAGES_OPTIONAL=(
4141
if [[ "$QEMU_USER" != "1" ]]; then
4242
MODULES_PACKAGE="linux-modules-extra-$(uname -r)"
4343
# may not exist anymore
44-
if apt-cache show "$MODULES_PACKAGE" >/dev/null 2>&1; then
44+
APT_CACHE_OUTPUT=$(apt-cache show "$MODULES_PACKAGE")
45+
APT_CACHE_STATUS=$?
46+
if [[ "${APT_CACHE_STATUS}" == 0 && -n "${APT_CACHE_OUTPUT}" ]]; then
4547
PACKAGES+=("$MODULES_PACKAGE")
4648
fi
4749
fi

0 commit comments

Comments
 (0)