If pico_setup.sh fails during install it can't be re-run

Open
#10 5 comments 0 reactions 0 assignees View on GitHub

@michaelstoops is already working on this.

Since Apr 3, 2021.

  • #20 by @michaelstoops — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
20/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
shell

Research direction

Start with pico_setup.sh and the example-build block that changes into $OUTDIR/pico-examples and creates build. Re-run the setup flow after an installation failure, including when the build directory already exists, and confirm it no longer stops at that step.

Written by the indexing model from the issue text.

Description

If you get any failure attempting to run pico-setup.sh then that script can't be rerun.

It barfs on

# Build a couple of examples
cd "$OUTDIR/pico-examples"
mkdir build
cd build

The quick hack to get round that is

# Build a couple of examples
cd "$OUTDIR/pico-examples"
#mkdir build
cd build

but it really should include code to allow a sane re-run.

Dominant language
Shell
Stars
128
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/pico-setup

All issues in raspberrypi/pico-setup

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.