Skip to content

Commit 988fce7

Browse files
committed
Fix activate script
1 parent 69901f7 commit 988fce7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

juhpc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,16 @@ else
220220
fi
221221
""")
222222
' > "$JULIAUP_WRAPPER"
223+
224+
if [ ! -s "$JULIAUP_WRAPPER" ]; then error "Juliaup wrapper is missing or empty."; fi
223225
chmod +x "$JULIAUP_WRAPPER"
224226

225227
info "... done."
226228

227229

228230
# Create an activation script that sets environment variables for juliaup, julia and HPC key packages
229231

230-
info_start "Creating activation script"
232+
info_start "Creating activate script"
231233

232234
export JULIAUP_DEPOT="$JULIAUP_INSTALLDIR/depot"
233235
export JULIA_DEPOT="$JULIAUP_INSTALLDIR/depot"
@@ -263,6 +265,8 @@ $(haskey(ENV,"JUHPC_ADIOS2_HOME") && ENV["JUHPC_ADIOS2_HOME"] != "" ? """
263265
""" : "")
264266
""")' > "$ACTIVATE_SCRIPT"
265267

268+
if [ ! -s "$ACTIVATE_SCRIPT" ]; then error "Activate script is missing or empty."; fi
269+
266270
info "... done."
267271

268272

0 commit comments

Comments
 (0)