summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-26 12:06:12 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-26 12:06:12 +0000
commit48e68662cf7ab600859c434ba3108b8f2ff24199 (patch)
tree1790de9eeda5b859ac20c3b95dfd829c29a6d48a /bin/ebuild.sh
parenta95f5d8314ef899ae5455089673b4de8b50b08b9 (diff)
downloadportage-48e68662cf7ab600859c434ba3108b8f2ff24199.tar.gz
portage-48e68662cf7ab600859c434ba3108b8f2ff24199.tar.bz2
portage-48e68662cf7ab600859c434ba3108b8f2ff24199.zip
Check if ${EBUILD_EXIT_STATUS_FILE} is empty before
attempting to use it. svn path=/main/trunk/; revision=8686
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index a6969c9d8..b8ca584d4 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1726,7 +1726,8 @@ if [ -n "${EBUILD_SH_ARGS}" ] ; then
9>&-
fi
set +f
- touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null
+ [ -n "${EBUILD_EXIT_STATUS_FILE}" ] && \
+ touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null
exit 0
;;
*)
@@ -1737,7 +1738,8 @@ if [ -n "${EBUILD_SH_ARGS}" ] ; then
exit 1
;;
esac
- touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null
+ [ -n "${EBUILD_EXIT_STATUS_FILE}" ] && \
+ touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null
fi
# Save the env only for relevant phases.