Skip to content

Commit c45bc97

Browse files
committed
Fix unset ARCH option
1 parent 21e2e3c commit c45bc97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/jobs/chroot_checks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
. .github/jobs/ci_settings.sh
44

55
if [ -n "$1" ] && [ "$1" != "default" ]; then
6-
export ARCH="$1"
6+
export ARCH_OPTION="-a $1"
7+
else
8+
export ARCH_OPTION=""
79
fi
810

911
function finish() {
@@ -46,7 +48,7 @@ cd /opt/domjudge/judgehost/bin || exit 1
4648
section_end chroot
4749

4850
section_start "Show minimal chroot"
49-
./dj_make_chroot -a "$ARCH" | tee -a "$ARTIFACTS"/chroot.log
51+
./dj_make_chroot "$ARCH_OPTION" | tee -a "$ARTIFACTS"/chroot.log
5052
section_end
5153

5254
section_start "Test chroot contents"

0 commit comments

Comments
 (0)