Exit with the previous commands exit status incase it failes: In this case copying the aegisub binary into the bundle.

Originally committed to SVN as r3157.
This commit is contained in:
Amar Takhar 2009-07-17 19:52:08 +00:00
parent 51c7ead1b8
commit e2e859b8f4
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ echo "---- Binaries ----"
if test src/${AEGISUB_BIN} -nt src/.libs/${AEGISUB_BIN}; then
cp -v src/${AEGISUB_BIN} "${PKG_DIR}/Contents/MacOS/aegisub"
else
cp -v src/.libs/${AEGISUB_BIN} "${PKG_DIR}/Contents/MacOS/aegisub"
cp -v src/.libs/${AEGISUB_BIN} "${PKG_DIR}/Contents/MacOS/aegisub" || exit $?
fi
echo cc -o "${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c"