Skip to content

fix: after-install.tpl: Fix stdio redirects in update-alternative invocation#9536

Merged
mmaietta merged 5 commits into
electron-userland:masterfrom
joshtriplett:fix-update-alternatives-invocation-redirects
Jan 29, 2026
Merged

fix: after-install.tpl: Fix stdio redirects in update-alternative invocation#9536
mmaietta merged 5 commits into
electron-userland:masterfrom
joshtriplett:fix-update-alternatives-invocation-redirects

Conversation

@joshtriplett
Copy link
Copy Markdown
Contributor

after-install.tpl (which becomes the postinst in a Debian package)
writes if type update-alternatives 2>/dev/null >&1. This fails to
suppress the output, so the built packages always print the type
output "update-alternatives is /usr/bin/update-alternatives" from their
postinst.

Fix the stdio redirects to use >/dev/null 2>&1 like other usages in
the file.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 25, 2026

🦋 Changeset detected

Latest commit: 2a4bee6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…ocation

after-install.tpl (which becomes the postinst in a Debian package)
writes `if type update-alternatives 2>/dev/null >&1`. This fails to
suppress the output, so the built packages always print the `type`
output "update-alternatives is /usr/bin/update-alternatives" from their
postinst.

Fix the stdio redirects to use `>/dev/null 2>&1` like other usages in
the file.
@joshtriplett joshtriplett force-pushed the fix-update-alternatives-invocation-redirects branch from 2a91c31 to 65dfe32 Compare January 25, 2026 23:55
@joshtriplett joshtriplett changed the title after-install.tpl: Fix stdio redirects in update-alternative invocation fix: after-install.tpl: Fix stdio redirects in update-alternative invocation Jan 25, 2026
@mmaietta mmaietta merged commit ec9e2db into electron-userland:master Jan 29, 2026
54 of 56 checks passed
@joshtriplett joshtriplett deleted the fix-update-alternatives-invocation-redirects branch February 1, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants