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/isolated-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 9eaf9bffb..70cae7097 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -124,7 +124,8 @@ diefunc() { done fi - touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null + [ -n "${EBUILD_EXIT_STATUS_FILE}" ] && \ + touch "${EBUILD_EXIT_STATUS_FILE}" &>/dev/null # subshell die support kill -s SIGTERM ${EBUILD_MASTER_PID} -- cgit v1.2.3-1-g7c22