Skip to content

Commit e99c465

Browse files
committed
fix: use sh for the installer script
1 parent 33d51d9 commit e99c465

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
run: |
171171
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
172172
echo "install_deps<<$EOF" >> $GITHUB_OUTPUT
173-
cat ./script/install-deps.bash >> $GITHUB_OUTPUT
173+
cat ./script/install-deps.sh >> $GITHUB_OUTPUT
174174
echo "$EOF" >> $GITHUB_OUTPUT
175175
176176
- name: Build Linux Arm64

script/install-deps.bash renamed to script/install-deps.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
set -x
44

55
# Ubuntu/Debian
66
apt=$(command -v apt-get || true)
7-
if [[ -n $apt ]]; then
7+
if [ -n "$apt" ]; then
88
apt-get update -q -y
99
apt-get install --no-install-recommends -y \
1010
bash \
@@ -30,15 +30,15 @@ fi
3030

3131
# Alpine Linux
3232
apk=$(command -v apk || true)
33-
if [[ -n $apk ]]; then
33+
if [ -n "$apk" ]; then
3434
apk update
3535
apk add --no-cache bash build-base curl git g++ make ninja-build pkgconfig unzip zip python3 tar cmake musl-dev automake autoconf libtool nodejs npm
3636
cp /usr/lib/ninja-build/bin/ninja /usr/bin/ninja
3737
fi
3838

3939
# Fedora/RHEL
4040
dnf=$(command -v dnf || true)
41-
if [[ -n $dnf ]]; then
41+
if [ -n "$dnf" ]; then
4242
dnf update -q -y
4343
dnf install -y \
4444
bash \

0 commit comments

Comments
 (0)