Skip to content

Commit b53d63c

Browse files
committed
Replace return 1 with exit 1
1 parent 3f93536 commit b53d63c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install_rms.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if ! command -v juliaup &> /dev/null; then
1111
echo "juliaup add 1.10"
1212
echo "juliaup default 1.10"
1313
echo "juliaup remove release"
14-
return 1
14+
exit 1
1515
fi
1616

1717
# Check if julia command is available
@@ -20,7 +20,7 @@ if ! command -v julia &> /dev/null; then
2020
echo "juliaup add 1.10"
2121
echo "juliaup default 1.10"
2222
echo "juliaup remove release"
23-
return 1
23+
exit 1
2424
fi
2525

2626
# Check if Julia version is 1.10
@@ -30,7 +30,7 @@ if ! julia --version | grep -q " 1\.10"; then
3030
echo "juliaup add 1.10"
3131
echo "juliaup default 1.10"
3232
echo "juliaup remove release"
33-
return 1
33+
exit 1
3434
fi
3535

3636
# Print the path of the Julia binary

0 commit comments

Comments
 (0)