Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Dash as /bin/sh #342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JtMotoX
Copy link

@JtMotoX JtMotoX commented Nov 29, 2024

I am using Dash for /bin/sh and the Asahi installer fails with "Your version of cURL is too old". This is because the curl check uses &>/dev/null which Dash does not support. Updating to use the more compatible >/dev/null 2>&1 instead.

> curl https://alx.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2289  100  2289    0     0   4364      0 --:--:-- --:--:-- --:--:--  4368
Your version of cURL is too old. This usually means your macOS is very out
of date. Installing Asahi Linux requires at least macOS version 13.5.

> sw_vers
ProductName:		macOS
ProductVersion:		15.1.1
BuildVersion:		24B91

> what /bin/sh
/bin/sh:
	PROGRAM:sh  PROJECT:dash-16
	PROGRAM:sh  PROJECT:dash-16

> /bin/sh -c 'if ! date &>&1; then echo "something wrong"; else echo "something right"; fi'
something wrong
Fri Nov 29 14:21:27 PST 2024

> /bin/sh -c 'if ! date >/dev/null 2>&1; then echo "something wrong"; else echo "something right"; fi'
something right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant