Skip to content

Commit b4abaad

Browse files
committed
Fix usage of newly introduced JULIAUP_EXE
1 parent d8025f0 commit b4abaad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

juhpc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,20 @@ info() {
198198
echo -e "$(ENV["JUHPC"]) \$message" >&2
199199
}
200200
201-
export JULIAUP_EXE="$(ENV["JULIAUP_BINDIR"])/juliaup"
201+
JULIAUP_EXE="$(ENV["JULIAUP_BINDIR"])/juliaup"
202202
203-
if [ ! -f "$JULIAUP_EXE" ]; then
203+
if [ ! -f "\$JULIAUP_EXE" ]; then
204204
print_logo
205205
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"])..."
206206
sleep 3
207207
PATH_OLD="\$PATH"
208208
export PATH=\$(echo \$PATH | perl -pe "s|[^:]*juliaup(?:_wrapper)?[^:]*:?||g") # Remove all juliaup paths from PATH
209209
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; }
210210
export PATH="\$PATH_OLD"
211-
if [ ! -f "$JULIAUP_EXE" ]; then error "juliaup installation failed."; fi
211+
if [ ! -f "\$JULIAUP_EXE" ]; then error "juliaup installation failed."; fi
212212
info "... done. Installation of juliaup and the latest julia in $(ENV["JULIAUP_INSTALLDIR"]) completed. You can use juliaup and julia normally."
213213
else
214-
"$JULIAUP_EXE" \$@
214+
"\$JULIAUP_EXE" \$@
215215
fi
216216
""")
217217
' > "$JULIAUP_WRAPPER"

0 commit comments

Comments
 (0)