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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user