diff options
author | davidovski <david@davidovski.xyz> | 2023-01-21 17:29:15 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-01-21 17:29:15 +0000 |
commit | 55210938514ec2edae9ff4671b8480b6fd6b7b5a (patch) | |
tree | 655bc39acc6a4657d1f3859159fd1922dda45301 /xib.sh | |
parent | 734a11c2cb45122e8e6484acb1dcbc86f9be24ac (diff) |
Add viewing logs on fail
Diffstat (limited to 'xib.sh')
-rwxr-xr-x | xib.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |