@@ -179,8 +179,7 @@ info_end "$INFO_MSG"
179
179
180
180
# Create a wrapper for juliaup that installs juliaup (and latest julia) on scratch if it is not already installed
181
181
182
- INFO_MSG=" Creating wrapper for juliaup"
183
- info_start " $INFO_MSG "
182
+ info_start " Creating wrapper for juliaup"
184
183
185
184
export JULIAUP_WRAPPER_BINDIR=" $JUHPC_SETUP_INSTALLDIR /juliaup_wrapper"
186
185
export JULIAUP_WRAPPER=" $JULIAUP_WRAPPER_BINDIR /juliaup"
@@ -198,32 +197,31 @@ info() {
198
197
echo -e "$(ENV["JUHPC"]) \$message" >&2
199
198
}
200
199
201
- export JULIAUP_EXE="$(ENV["JULIAUP_BINDIR"])/juliaup"
200
+ JULIAUP_EXE="$(ENV["JULIAUP_BINDIR"])/juliaup"
202
201
203
- if [ ! -f "$JULIAUP_EXE" ]; then
202
+ if [ ! -f "\ $JULIAUP_EXE" ]; then
204
203
print_logo
205
204
info "This is the first call to juliaup; juliaup and the latest julia will now be installed. After that, you can use juliaup and julia normally. Installing in $(ENV["JULIAUP_INSTALLDIR"])..."
206
205
sleep 3
207
206
PATH_OLD="\$PATH"
208
207
export PATH=\$(echo \$PATH | perl -pe "s|[^:]*juliaup(?:_wrapper)?[^:]*:?||g") # Remove all juliaup paths from PATH
209
208
curl -fsSL https://install.julialang.org | sh -s -- --add-to-path=no --yes --path="$(ENV["JULIAUP_INSTALLDIR"])" --background-selfupdate 0 --startup-selfupdate 0 || { echo "Failed to install Juliaup (and Julia)." >&2; exit 1; }
210
209
export PATH="\$PATH_OLD"
211
- if [ ! -f "$JULIAUP_EXE" ]; then error "juliaup installation failed."; fi
210
+ if [ ! -f "\ $JULIAUP_EXE" ]; then error "juliaup installation failed."; fi
212
211
info "... done. Installation of juliaup and the latest julia in $(ENV["JULIAUP_INSTALLDIR"]) completed. You can use juliaup and julia normally."
213
212
else
214
- "$JULIAUP_EXE" \$@
213
+ "\ $JULIAUP_EXE" \$@
215
214
fi
216
215
""")
217
216
' > " $JULIAUP_WRAPPER "
218
217
chmod +x " $JULIAUP_WRAPPER "
219
218
220
- info_end " $INFO_MSG "
219
+ info " ... done. "
221
220
222
221
223
222
# Create an activation script that sets environment variables for juliaup, julia and HPC key packages
224
223
225
- INFO_MSG=" Creating activation script"
226
- info_start " $INFO_MSG "
224
+ info_start " Creating activation script"
227
225
228
226
export JULIAUP_DEPOT=" $JULIAUP_INSTALLDIR /depot"
229
227
export JULIA_DEPOT=" $JULIAUP_INSTALLDIR /depot"
@@ -259,7 +257,7 @@ $(haskey(ENV,"JUHPC_ADIOS2_HOME") && ENV["JUHPC_ADIOS2_HOME"] != "" ? """
259
257
""" : "")
260
258
""")' > " $ACTIVATE_SCRIPT "
261
259
262
- info_end " $INFO_MSG "
260
+ info " ... done. "
263
261
264
262
265
263
# Optionally execute a site-specific post installation julia script (if passed a third argument)
0 commit comments