From: Tilman Sauerbeck Date: Sun, 6 Mar 2016 19:08:16 +0000 (+0000) Subject: Refactoring pkgmk-cross call and added exit code X-Git-Url: http://gitweb/?a=commitdiff_plain;h=a04c645fa55734d0d68d5b97440815c346c1f112;p=pkgutils-cross.git Refactoring pkgmk-cross call and added exit code --- 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