Skip to content

Commit a67e4de

Browse files
Neethu-Mohandogi
andauthored
treehouses services supported arches (fixes #1836) (#1852)
Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent 0514a22 commit a67e4de

31 files changed

+62
-63
lines changed

modules/services.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function services {
1919
do
2020
if [[ ! $file = *"README.md"* ]]; then
2121
service=$(echo "${file##*/}" | sed -e 's/^install-//' -e 's/.sh$//')
22-
if check_arm $service; then
22+
if check_arch $service; then
2323
echo $service
2424
fi
2525
fi
@@ -492,11 +492,10 @@ function services {
492492
esac
493493
}
494494

495-
function check_arm {
496-
arms=($(source $SERVICES/install-${1}.sh && supported_arms))
497-
for i in "${arms[@]}"
498-
do
499-
if [ "$(detect arch)" = "$i" ]; then
495+
function check_arch {
496+
arches=($(source $SERVICES/install-${1}.sh && supported_arches))
497+
for i in "${arches[@]}"; do
498+
if [ "$(detect arch)" == "$i" ]; then
500499
return 0
501500
fi
502501
done

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@treehouses/cli",
3-
"version": "1.25.3",
3+
"version": "1.25.4",
44
"remote": "4000",
55
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
66
"main": "cli.sh",

services/install-bookstack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ function uses_env {
6565
echo true
6666
}
6767

68-
# add supported arm(s)
69-
function supported_arms {
68+
# add supported arch(es)
69+
function supported_arches {
7070
echo "armv7l"
7171
echo "aarch64"
7272
echo "x86_64"

services/install-cloud9.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function uses_env {
3535
echo false
3636
}
3737

38-
# add supported arm(s)
39-
function supported_arms {
38+
# add supported arch(es)
39+
function supported_arches {
4040
echo "armv7l"
4141
echo "aarch64"
4242
echo "x86_64"

services/install-couchdb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function uses_env {
3434
echo false
3535
}
3636

37-
# add supported arm(s)
38-
function supported_arms {
37+
# add supported arch(es)
38+
function supported_arches {
3939
echo "armv7l"
4040
echo "armv6l"
4141
echo "x86_64"

services/install-dokuwiki.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function uses_env {
3939
echo false
4040
}
4141

42-
# add supported arm(s)
43-
function supported_arms {
42+
# add supported arch(es)
43+
function supported_arches {
4444
echo "armv7l"
4545
echo "aarch64"
4646
echo "x86_64"

services/install-grocy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function uses_env {
5151
echo true
5252
}
5353

54-
# add supported arm(s)
55-
function supported_arms {
54+
# add supported arch(es)
55+
function supported_arches {
5656
echo "armv7l"
5757
echo "x86_64"
5858
echo "aarch64"

services/install-invoiceninja.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ function uses_env {
171171
echo true
172172
}
173173

174-
# add supported arm(s)
175-
function supported_arms {
174+
# add supported arch(es)
175+
function supported_arches {
176176
echo "armv7l"
177177
}
178178

services/install-jellyfin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function uses_env {
5050
}
5151

5252
# add supported arch(es)
53-
function supported_arms {
53+
function supported_arches {
5454
echo "armv7l"
5555
echo "aarch64"
5656
echo "x86_64"

services/install-kolibri.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function uses_env {
3333
echo false
3434
}
3535

36-
# add supported arm(s)
37-
function supported_arms {
36+
# add supported arch(es)
37+
function supported_arches {
3838
echo "armv7l"
3939
echo "x86_64"
4040
}

0 commit comments

Comments
 (0)