squash! fixes to support installation on Termux (Android)
authorShane Jaroch <chown_tee@proton.me>
Fri, 16 Jan 2026 20:52:30 +0000 (15:52 -0500)
committerShane Jaroch <chown_tee@proton.me>
Fri, 16 Jan 2026 20:52:58 +0000 (15:52 -0500)
fix installer script gnu sed for linux tests

tests/test-install-logic.sh

index 30f4a4b2b89f04588f895b1fd5e6e1df8f7aafa9..7518b917d58566aefec5527d7b4e501c23fde312 100755 (executable)
@@ -225,8 +225,8 @@ unset DESTDIR
 # We copy the installer (breaking symlink) and patch it to check a nonexistent path instead of /usr/local
 
 rm -f "$INSTALLER"
-cp "$REPO_ROOT/install.sh" "$INSTALLER"
-sed -i 's|/usr/local|/non/existent/path|g' "$INSTALLER"
+sed 's|/usr/local|/non/existent/path|g' "$REPO_ROOT/install.sh" > "$INSTALLER"
+chmod +x "$INSTALLER"
 
 # Run with PREFIX set but explicit prefix unset
 if PREFIX="$TERMUX_PREFIX" bash "$INSTALLER" >.install_log 2>&1; then