From 834b6398feab7fb5d093dfdb2e59fc6d5aa35039 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 26 Nov 2007 05:49:47 +0000 Subject: [PATCH] Use /data/tmp if it exists. --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index faf52e7..c986d81 100755 --- a/build.sh +++ b/build.sh @@ -121,11 +121,11 @@ echo "* Building images for $FULL_VERSION_STRING" # should do is check whether the expected amount of space # is available. BUILDTMP=/usr/tmp -if [ -d /data ] ; then - isreadonly=$(mktemp /data/isreadonly.XXXXXX || /bin/true) +if [ -d /data/tmp ] ; then + isreadonly=$(mktemp /data/tmp/isreadonly.XXXXXX || /bin/true) if [ -n "$isreadonly" ] ; then rm -f "$isreadonly" - BUILDTMP=/data + BUILDTMP=/data/tmp fi fi -- 2.43.0