From 4ae347988339bb5a07411d5318472bba577bbf63 Mon Sep 17 00:00:00 2001
From: Pablo Escobar <pescobar001@gmail.com>
Date: Mon, 20 Mar 2017 12:26:21 +0100
Subject: [PATCH] use $TMPDIR instead of /scratch

---
 scripts/ost-nightly-build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ost-nightly-build.sh b/scripts/ost-nightly-build.sh
index dd24e58aa..01d4ab930 100644
--- a/scripts/ost-nightly-build.sh
+++ b/scripts/ost-nightly-build.sh
@@ -20,7 +20,7 @@ CURRENT_DATE=$(date +"%Y%m%dT%H%M%SZ")
 GIT_BRANCH=$1
 
 # create a temporary directory to download the sources and do the build
-TEMP_DIR="/scratch/${USER}/ost-builds/$CURRENT_DATE"
+TEMP_DIR="${TMPDIR}/${USER}/ost-builds/$CURRENT_DATE"
 echo -e "\ncreating temporary dir to clone and build in $TEMP_DIR\n"
 mkdir -p $TEMP_DIR
 
-- 
GitLab