X-Git-Url: http://gitweb/?a=blobdiff_plain;f=pkgmk-cross;h=888bf02dc705d1dba26cdad8748017867a0ba386;hb=refs%2Fheads%2F3.3;hp=6d02f4b670789a57d2dabce441e54599819533ce;hpb=174925ab782bcb7a893d56a79b16b8d767eaaf6d;p=pkgutils-cross.git 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