From 55210938514ec2edae9ff4671b8480b6fd6b7b5a Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 21 Jan 2023 17:29:15 +0000 Subject: Add viewing logs on fail --- xib.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xib.sh') diff --git a/xib.sh b/xib.sh index 2b8c6ba..2b4f158 100755 --- a/xib.sh +++ b/xib.sh @@ -12,7 +12,6 @@ priv_key="xi.pem" buildfiles="/home/david/docs/proj/xilinux/buildfiles" #buildfiles="$xib_dir/buildfiles" seen="$xib_dir/seen" -logs="$xib_dir/logs" chroot="$xib_dir/chroot" stage="$xib_dir/stage" logs="$xib_dir/logs" @@ -225,7 +224,12 @@ xib_all () { printf "${BLUE}$package_name${LIGHT_BLUE}...already built!\n" } || { xib_single $name || { - $quickfail && return 0 + $quickfail && { + printf "${RED}Failed to build $name, view logs? [Y/n]${RESET}" + read var + [ "${var%${var#?}}"x != 'nx' ] && less $logs/$name.log + return 1 + } } } true -- cgit v1.2.1