Skip to content

Commit

Permalink
Merge pull request #15 from AleoHQ/update/install-script
Browse files Browse the repository at this point in the history
Updates install script.
  • Loading branch information
howardwu authored Oct 13, 2022
2 parents 3eb765a + 5269e4d commit 63da325
Showing 1 changed file with 9 additions and 7 deletions.
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

0 comments on commit 63da325

Please sign in to comment.