diff options
author | kris <kris@FreeBSD.org> | 2006-01-15 12:18:14 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-01-15 12:18:14 +0800 |
commit | a05910afd11f75365c60d3f175168a919d4e9bcc (patch) | |
tree | 7d97b7eca1178eb1dc080aea9068a30c19036c7c /Tools/portbuild | |
parent | 058b66f78817ce45aff2e79c41848b26886abcfb (diff) | |
download | freebsd-ports-gnome-a05910afd11f75365c60d3f175168a919d4e9bcc.tar.gz freebsd-ports-gnome-a05910afd11f75365c60d3f175168a919d4e9bcc.tar.zst freebsd-ports-gnome-a05910afd11f75365c60d3f175168a919d4e9bcc.zip |
Exit with the correct error code when a make target fails
PR: ports/64930
Submitted by: Damir Kiramov <damirycha@damirycha.net.ru>
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/makeworld | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/makeworld b/Tools/portbuild/scripts/makeworld index 9b50c2d3907d..7ed0ee0052c8 100755 --- a/Tools/portbuild/scripts/makeworld +++ b/Tools/portbuild/scripts/makeworld @@ -57,7 +57,7 @@ echo "==> Starting make buildworld" make buildworld $* error=$? if [ "$error" != "0" ]; then - exit $? + exit $error fi echo "==> Cleaning up chroot" @@ -72,7 +72,7 @@ if [ "$client" = "0" ]; then make installworld DESTDIR=/var/chroot error=$? if [ "$error" != "0" ]; then - exit $? + exit $error fi echo "==> Starting make distribute" @@ -82,7 +82,7 @@ if [ "$client" = "0" ]; then make distribute DISTRIBUTION=/var/chroot/ error=$? if [ "$error" != "0" ]; then - exit $? + exit $error fi else echo "==> Not doing installworld of client source tree" |