Skip to content

Commit 5eb33f3

Browse files
JtMotoXdavide125
authored andcommitted
Use POSIX shell redirection semantics (#342)
This is compatible with Dash. Signed-off-by: JtMotoX <[email protected]>
1 parent 1b96b00 commit 5eb33f3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/bootstrap-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if true; then
1515
export LANG=en_US.UTF-8
1616
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
1717

18-
if ! curl --no-progress-meter file:/// &>/dev/null; then
18+
if ! curl --no-progress-meter file:/// >/dev/null 2>&1; then
1919
echo "Your version of cURL is too old. This usually means your macOS is very out"
2020
echo "of date. Installing Asahi Linux requires at least macOS version 13.5."
2121
exit 1

scripts/bootstrap-prod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if true; then
1515
export LANG=en_US.UTF-8
1616
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
1717

18-
if ! curl --no-progress-meter file:/// &>/dev/null; then
18+
if ! curl --no-progress-meter file:/// >/dev/null 2>&1; then
1919
echo "Your version of cURL is too old. This usually means your macOS is very out"
2020
echo "of date. Installing Asahi Linux requires at least macOS version 13.5."
2121
exit 1

scripts/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if true; then
1515
export LANG=en_US.UTF-8
1616
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
1717

18-
if ! curl --no-progress-meter file:/// &>/dev/null; then
18+
if ! curl --no-progress-meter file:/// >/dev/null 2>&1; then
1919
echo "Your version of cURL is too old. This usually means your macOS is very out"
2020
echo "of date. Installing Asahi Linux requires at least macOS version 13.5."
2121
exit 1

0 commit comments

Comments
 (0)