Skip to content

Commit 3ee08f4

Browse files
committed
fix: Safe error handling
1 parent ea40b97 commit 3ee08f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

alteriso/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN pacman -Syu --noconfirm && \
88
FROM arch AS archiso
99

1010
# Install archiso
11-
RUN pacman -S --noconfirm archiso jq && \
11+
RUN pacman -S --noconfirm archiso jq unzip && \
1212
pacman -Scc --noconfirm
1313

1414
FROM arch AS golang-dev
@@ -35,9 +35,9 @@ COPY ./modules /usr/share/alteriso/modules
3535
COPY ./bootloaders /usr/share/alteriso/bootloaders
3636
COPY ./setup_3rd_repo.sh /tmp/setup_3rd_repo.sh
3737
RUN <<EOF
38-
chmod +x /usr/local/bin/alteriso
39-
chmod +x /tmp/setup_3rd_repo.sh
40-
bash /tmp/setup_3rd_repo.sh
38+
set -e
39+
chmod +x /usr/local/bin/alteriso /tmp/setup_3rd_repo.sh
40+
bash /tmp/setup_3rd_repo.sh || exit 1
4141
rm -rf /tmp/setup_3rd_repo.sh
4242
EOF
4343

0 commit comments

Comments
 (0)