Skip to content

Commit e964458

Browse files
committed
Exit the function with the exit code of arch-chroot.
As a result, the correct number of lines of code will be output at the time of abnormal termination.
1 parent ef70acf commit e964458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ _run_with_pacmanconf(){
246246
# コマンドをchrootで実行する
247247
_chroot_run() {
248248
msg_debug "Run command in chroot\nCommand: ${*}"
249-
arch-chroot "${airootfs_dir}" "${@}"
249+
arch-chroot "${airootfs_dir}" "${@}" || return "${?}"
250250
}
251251

252252
_cleanup_common () {

0 commit comments

Comments
 (0)