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