Skip to content

Commit 3921b8e

Browse files
authored
Fix FORCE_INSTALL when using simple install commands (#1865)
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>
1 parent f127ad2 commit 3921b8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

get-tinypilot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fi
160160
# Run install.
161161
pushd "${INSTALLER_DIR}"
162162
sudo \
163-
TMPDIR="${TMPDIR}" \
163+
--preserve-env=TMPDIR,FORCE_INSTALL \
164164
./install
165165

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

0 commit comments

Comments
 (0)