xbps-src: propagate error returned by xbps-src in the chroot.

Rather than pointing the user to cat the .log file, just cat it before exiting.
This commit is contained in:
Juan RP 2010-05-09 19:46:28 +02:00
parent e514b75180
commit 81d6978f02
5 changed files with 73 additions and 32 deletions

View file

@ -1,5 +1,5 @@
#-
# Copyright (c) 2008-2009 Juan Romero Pardines.
# Copyright (c) 2008-2010 Juan Romero Pardines.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -38,7 +38,7 @@ run_func()
fi
}
msg_error()
msg_red()
{
[ -z "$1" ] && return 1
@ -50,7 +50,11 @@ msg_error()
echo "=> ERROR: $1"
fi
printf "\033[m"
}
msg_error()
{
msg_red "$@"
exit 1
}