aboutsummaryrefslogtreecommitdiffstats
path: root/tw_hooks
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2021-05-31 17:28:28 +0100
committerMatthew Lemon <matt@matthewlemon.com>2021-05-31 17:28:28 +0100
commitb4ac19b1423f8c5f43513379dcb18e8392904885 (patch)
tree5ef850a117990e5b012fa07565f8910b0fb6217c /tw_hooks
parent03ee885c12384fb51fcbcf572874dc903b7df135 (diff)
removed unnecessary host
Diffstat (limited to 'tw_hooks')
-rwxr-xr-xtw_hooks/on-add_scheduled_work_task.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tw_hooks/on-add_scheduled_work_task.pl b/tw_hooks/on-add_scheduled_work_task.pl
index 8351685..6e9d902 100755
--- a/tw_hooks/on-add_scheduled_work_task.pl
+++ b/tw_hooks/on-add_scheduled_work_task.pl
@@ -71,7 +71,7 @@ if ($decoded_task->{scheduled} and (scalar grep {$_ eq "dft" } @{$tags})) {
my $user = $ENV{"TW_HOOK_REMIND_REMOTE_USER"} or die "Cannot get TW_HOOK_REMIND_REMOTE_USER environment variable";
# use correct port
- if ($host eq "16693433.xyz") { $port = 2222 };
+ if ($host =~ m/.*\.xyz$/) { $port = 2222 };
say "Trying to establish connection at $host:$port ...";
my $ssh = Net::OpenSSH->new($host, user => $user, port => $port);