From a04c645fa55734d0d68d5b97440815c346c1f112 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 6 Mar 2016 19:08:16 +0000 Subject: [PATCH] Refactoring pkgmk-cross call and added exit code --- pkgmk-cross | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgmk-cross b/pkgmk-cross index 6d02f4b..888bf02 100755 --- a/pkgmk-cross +++ b/pkgmk-cross @@ -29,13 +29,16 @@ if [ ! -z "$PKGMK_OPTIMIZE" ]; then fi fi -if [ -x $PKGMK ]; then - $PKGMK -cf $PKGMK_CONF $PKGMK_ARGS -else +if [ ! -x $PKGMK ]; then chmod +x $PKGMK - $PKGMK -cf $PKGMK_CONF $PKGMK_ARGS fi +$PKGMK -cf $PKGMK_CONF $PKGMK_ARGS +exit_code=$? + rm -f $TMP_CONF +# Pass along the exit code of pkgmk. +exit $exit_code + # End of file -- 2.26.2