summaryrefslogtreecommitdiff
path: root/xib.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-01-21 17:29:15 +0000
committerdavidovski <david@davidovski.xyz>2023-01-21 17:29:15 +0000
commit55210938514ec2edae9ff4671b8480b6fd6b7b5a (patch)
tree655bc39acc6a4657d1f3859159fd1922dda45301 /xib.sh
parent734a11c2cb45122e8e6484acb1dcbc86f9be24ac (diff)
Add viewing logs on fail
Diffstat (limited to 'xib.sh')
-rwxr-xr-xxib.sh8
1 files changed, 6 insertions, 2 deletions
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