CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
pkgutils-cross.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174925a
)
Refactoring pkgmk-cross call and added exit code
author
Tilman Sauerbeck
<tilman@crux.nu>
Sun, 6 Mar 2016 19:08:16 +0000
(19:08 +0000)
committer
Tilman Sauerbeck
<tilman@crux.nu>
Sun, 6 Mar 2016 19:08:16 +0000
(19:08 +0000)
pkgmk-cross
patch
|
blob
|
blame
|
history
diff --git
a/pkgmk-cross
b/pkgmk-cross
index 6d02f4b670789a57d2dabce441e54599819533ce..888bf02dc705d1dba26cdad8748017867a0ba386 100755
(executable)
--- 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