Skip to content

Commit 9331aed

Browse files
Copilotskjnldsv
andauthored
Add null-glob guard for .deb files before dpkg install
Agent-Logs-Url: https://github.com/nextcloud/documentation/sessions/872269b8-1ded-4db5-8d42-72115ccab6fa Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
1 parent 18b227f commit 9331aed

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ jobs:
140140
if: ${{ matrix.manual.build_pdf_path }}
141141
timeout-minutes: 5
142142
run: |
143-
sudo dpkg -i --force-depends ${{ runner.temp }}/.cache/archives/*.deb
143+
debs=(${{ runner.temp }}/.cache/archives/*.deb)
144+
if [ ! -e "${debs[0]}" ]; then
145+
echo "No .deb files found in cache archives — cache may be empty or missing." >&2
146+
exit 1
147+
fi
148+
sudo dpkg -i --force-depends "${debs[@]}"
144149
sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y --no-install-recommends \
145150
-o Dir::State::lists="${{ runner.temp }}/.cache/lists"
146151

0 commit comments

Comments
 (0)