Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions modules/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ function services {
for file in $SERVICES/*
do
if [[ ! $file = *"README.md"* ]]; then
echo "${file##*/}" | sed -e 's/^install-//' -e 's/.sh$//'
service=$(echo "${file##*/}" | sed -e 's/^install-//' -e 's/.sh$//')
if check_arm $service; then
echo $service
fi
fi
done
else
Expand Down Expand Up @@ -85,7 +88,6 @@ function services {
exit 1
else
check_available_services $service_name
check_arm $service_name
case "$command" in
install)
checkargn $# 2
Expand Down Expand Up @@ -393,11 +395,7 @@ function check_arm {
return 0
fi
done
echo "ERROR: unsupported arm"
echo "user arm: $(detectarm)"
echo "supported arm(s): ${arms[*]}"
exit 1
# return 1
return 1
}

function check_available_services {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.17.20",
"version": "1.17.21",
"remote": "2251",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down