Skip to content

Commit

Permalink
Fix FORCE_INSTALL when using simple install commands (#1865)
Browse files Browse the repository at this point in the history
Resolves #1864 

This change updates `get-install.sh` to preserve the `FORCE_INSTALL`
environment variable when running `sudo ./install`.

This allows users to set `FORCE_INSTALL` before running the simple
install commands.

To test live on a device, install Raspberry Pi OS Bullseye 32-bit and
run:

```bash
export FORCE_INSTALL=1
```

And then:

```bash
curl \
  --silent \
  --show-error \
  https://raw.githubusercontent.com/tiny-pilot/tinypilot/refs/heads/1864-force_install-doesnt-work-as-expected/get-tinypilot.sh | \
    bash - && \
  sudo reboot
```

<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1865"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
  • Loading branch information
db39 authored Jan 17, 2025
1 parent f127ad2 commit 3921b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-tinypilot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fi
# Run install.
pushd "${INSTALLER_DIR}"
sudo \
TMPDIR="${TMPDIR}" \
--preserve-env=TMPDIR,FORCE_INSTALL \
./install

} # Prevent the script from executing until the client downloads the full file.

0 comments on commit 3921b8e

Please sign in to comment.