Skip to content

Commit 6eecd69

Browse files
committed
write tmp installation output into log
1 parent 5918b17 commit 6eecd69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

juhpc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ else
7979
error "Neither /dev/shm nor /tmp directories exist. Cannot set TMP environment variable."
8080
fi
8181

82+
mkdir -p "$TMP" || { error "failed to create directory: $TMP"; }
8283
export TMP_JULIAUP_ROOTDIR="$TMP/juliaup"
8384

8485

@@ -95,7 +96,7 @@ check_dir "$JUHPC_SETUP_INSTALLDIR"
9596
info "Installing juliaup and julia temporarily in $TMP_JULIAUP_ROOTDIR..."
9697

9798
export TMP_JULIAUP_BINDIR="$TMP_JULIAUP_ROOTDIR/bin" # juliaup and julia binaries
98-
export TMP_JULIAUP_LOG="$TMP_JULIAUP_ROOTDIR/tmpjuliaup.log"
99+
export TMP_JULIAUP_LOG="$TMP/tmpjuliaup.log"
99100
export JULIAUP_DEPOT_PATH="$TMP_JULIAUP_ROOTDIR/depot"
100101
export JULIA_DEPOT_PATH="$TMP_JULIAUP_ROOTDIR/depot"
101102
export JULIA_PROJECT="$JULIA_DEPOT_PATH/environments/latest"

0 commit comments

Comments
 (0)