summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 9eaf9bffb..70cae7097 100755
--- 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}