From 55a607ad548d28fe85f020debe366350885c741a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 26 Nov 2007 12:06:58 +0000 Subject: Check if ${EBUILD_EXIT_STATUS_FILE} is empty before attempting to use it. (trunk r8686) svn path=/main/branches/2.1.2/; revision=8687 --- bin/ebuild.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/ebuild.sh') 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. -- cgit v1.2.3-1-g7c22