Skip to content

Commit

Permalink
fix: πŸ˜… overwrite existing bins
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Feb 6, 2025
1 parent e513d56 commit f192080
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/scripts/download-polkadot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ if [[ -f tmp/polkadot && -f tmp/polkadot-execute-worker && -f tmp/polkadot-prepa
else
echo "Updating polkadot binary from $POLKADOT_VERSION to $polkadot_release"

pnpm moonwall download polkadot $polkadot_release tmp
pnpm moonwall download --overwrite polkadot $polkadot_release tmp
chmod +x tmp/polkadot

pnpm moonwall download polkadot-execute-worker $polkadot_release tmp
pnpm moonwall download --overwrite polkadot-execute-worker $polkadot_release tmp
chmod +x tmp/polkadot-execute-worker

pnpm moonwall download polkadot-prepare-worker $polkadot_release tmp
pnpm moonwall download --overwrite polkadot-prepare-worker $polkadot_release tmp
chmod +x tmp/polkadot-prepare-worker

fi
else
echo "Polkadot binary not found, downloading $polkadot_release"
pnpm moonwall download polkadot $polkadot_release tmp
pnpm moonwall download --overwrite polkadot $polkadot_release tmp
chmod +x tmp/polkadot

pnpm moonwall download polkadot-execute-worker $polkadot_release tmp
pnpm moonwall download --overwrite polkadot-execute-worker $polkadot_release tmp
chmod +x tmp/polkadot-execute-worker

pnpm moonwall download polkadot-prepare-worker $polkadot_release tmp
pnpm moonwall download --overwrite polkadot-prepare-worker $polkadot_release tmp
chmod +x tmp/polkadot-prepare-worker
fi

0 comments on commit f192080

Please sign in to comment.