Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates install script. #15

Merged
merged 2 commits into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,28 @@ Step 3: Installing Leo..."
cd leo && cargo install --path . && cd ..

echo "
Step 4: Downloading parameters. This may take a few minutes..."
Step 4: Downloading parameters. This will take a few minutes...
"

# Create a new dummy Leo project.
leo new dummy > /dev/null 2>&1 && cd dummy
# Create a new Leo project.
leo new install > /dev/null 2>&1
cd install

# Attempt to compile the dummy program until it passes.
# Attempt to compile the program until it passes.
# This is necessary to ensure that the universal parameters are downloaded.
declare -i DONE

DONE=1

while [ $DONE -ne 0 ]
do
leo build > /dev/null 2>&1
leo build 2>&1
DONE=$?
sleep 0.5
done

# Remove the dummy program.
cd .. && rm -rf dummy
# Remove the program.
cd .. && rm -rf install

echo "
Installation complete. Open a new Terminal to begin.
Expand Down