Hosted installer at install.lix.systems still has dash-incompatible == (fix not deployed) #76

Open
opened 2026-04-16 16:07:19 +00:00 by binaryphile · 1 comment

The fix in commit 40ef289e4c ("Fix shell script in sh/dash (non bash)") changed
== to = in lix-installer.sh, but the hosted copy at
https://install.lix.systems/lix still serves the pre-fix version.

On Debian/Crostini where /bin/sh is dash, the recommended install command fails:

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.lix.systems/lix | sh -s -- install linux --no-confirm --init none
sh: 92: [: x86_64-linux: unexpected operator

Diff between hosted and main branch:

--- install.lix.systems/lix
+++ lix-installer.sh (main branch)
@@ -92,93 @@
-  if [ "$_arch" == "x86_64-darwin" ]; then
-    if [ ${NIX_INSTALLER_USE_LEGACY_INTEL_MAC_VERSION:-0} -eq 0 ]; then
+  if [ "$_arch" = "x86_64-darwin" ]; then
+    if [ "${NIX_INSTALLER_USE_LEGACY_INTEL_MAC_VERSION:-0}" -eq 0 ]; then

The fix just needs to be redeployed.

The fix in commit 40ef289e4c ("Fix shell script in sh/dash (non bash)") changed `==` to `=` in `lix-installer.sh`, but the hosted copy at https://install.lix.systems/lix still serves the pre-fix version. On Debian/Crostini where /bin/sh is dash, the recommended install command fails: $ curl --proto '=https' --tlsv1.2 -sSf -L https://install.lix.systems/lix | sh -s -- install linux --no-confirm --init none sh: 92: [: x86_64-linux: unexpected operator Diff between hosted and main branch: --- install.lix.systems/lix +++ lix-installer.sh (main branch) @@ -92,93 @@ - if [ "$_arch" == "x86_64-darwin" ]; then - if [ ${NIX_INSTALLER_USE_LEGACY_INTEL_MAC_VERSION:-0} -eq 0 ]; then + if [ "$_arch" = "x86_64-darwin" ]; then + if [ "${NIX_INSTALLER_USE_LEGACY_INTEL_MAC_VERSION:-0}" -eq 0 ]; then The fix just needs to be redeployed.
Author

personally I'd use -eq instead of = so as to make it clear it's POSIX

personally I'd use -eq instead of = so as to make it clear it's POSIX
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix-installer#76
No description provided.