Skip to content

Commit

Permalink
treehouses services source with absolute path (fixes #2225) (#2228)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
JLKwong and dogi authored Jun 5, 2021
1 parent 7f52223 commit 8593f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function services {
for i in $(seq 1 "$(source $SERVICES/install-${service_name}.sh && get_ports | wc -l)")
do
local_url="$base_url:$(source $SERVICES/install-${service_name}.sh && get_ports | sed -n "$i p")"
if source services/install-${service_name}.sh && type -t get_paths >/dev/null; then
if source $SERVICES/install-${service_name}.sh && type -t get_paths >/dev/null; then
local_url+=$(source $SERVICES/install-${service_name}.sh && get_paths | sed -n "$i p")
fi
echo $local_url
Expand All @@ -298,7 +298,7 @@ function services {
for i in $(seq 1 "$(source $SERVICES/install-${service_name}.sh && get_ports | wc -l)")
do
tor_url="$base_tor:$(source $SERVICES/install-${service_name}.sh && get_ports | sed -n "$i p")"
if source services/install-${service_name}.sh && type -t get_paths >/dev/null; then
if source $SERVICES/install-${service_name}.sh && type -t get_paths >/dev/null; then
tor_url+=$(source $SERVICES/install-${service_name}.sh && get_paths | sed -n "$i p")
fi
echo $tor_url
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.25.58",
"version": "1.25.59",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit 8593f87

Please sign in to comment.