Skip to content

Commit

Permalink
treehouses sshtunnel slimmed down (fixes #2082) (#2088)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
rjpadilla and dogi authored Mar 15, 2021
1 parent 7efa362 commit e3c9544
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions modules/sshtunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ function sshtunnel {
if [ ! -z "$monitoringport" ] && [[ $line = *$host* ]]; then
break
fi
if [ ! -z "$monitoringport" ] && [ -z "$line" ]; then
monitoring=""
fi
done < <(cat /etc/tunnel)

if [ "$monitoringport" -eq "$((portinterval + offset))" ] || [ "$((monitoringport + 1))" -eq "$((portinterval + offset))" ]; then
Expand Down Expand Up @@ -212,9 +209,6 @@ function sshtunnel {
if [ ! -z "$monitoringport" ] && [[ $line = *$host* ]]; then
break
fi
if [ ! -z "$monitoringport" ] && [ -z "$line" ]; then
monitoring=""
fi
done < <(cat /etc/tunnel)

if [ "$monitoringport" -eq "$port" ] || [ "$((monitoringport + 1))" -eq "$port" ]; then
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.24",
"version": "1.25.25",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit e3c9544

Please sign in to comment.