Skip to content

Commit

Permalink
treehouses services url with networkmode info (fixes #649) (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjong authored Feb 6, 2020
1 parent 50e1fb6 commit c392425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function services {
if [ "$command_option" = "local" ]; then
for i in $(seq 1 "$(get_port $service_name | wc -l)")
do
local_url=$(hostname -I | head -n1 | cut -d " " -f1)
local_url=$(networkmode info | grep -oP -m1 '(?<=ip: ).*?(?=,)')
local_url+=":"
local_url+=$(get_port $service_name | sed -n "$i p")

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.13.8",
"version": "1.13.9",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
"bin": {
Expand Down

0 comments on commit c392425

Please sign in to comment.