From 1817b59bb34b7d9401bc4aad8a4df1e20e6f6bab Mon Sep 17 00:00:00 2001 From: Robert Spencer Date: Thu, 24 Nov 2016 17:23:00 +0200 Subject: [PATCH] Quick workaround to get basic globbing back --- awit-ssh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/awit-ssh b/awit-ssh index 6afd189..c0d34a8 100755 --- a/awit-ssh +++ b/awit-ssh @@ -54,7 +54,7 @@ use User::pwent; my $NAME = "AWIT-SSH-Client"; -our $VERSION = "0.8.1"; +our $VERSION = "0.8.2"; print(STDERR "$NAME v$VERSION - Copyright (c) 2016, AllWorldIT\n\n"); @@ -70,6 +70,9 @@ GetOptions(\%optctl, # TODO: debug is not implemented, make sure displayHelp is updated "debug", + # TODO: Improve globbing before adding it to displayHelp + "globbing", + "knock=s", "rsync", @@ -410,6 +413,9 @@ PFEC1: } # Check if we need to set the host + if (defined($optctl{'globbing'})) { + $loginHost = $ldapEntryName; + } if (my $ldapLoginHost = $ldapEntry->get_value('awitLoginHost')) { logger('INFO'," - Host ".color('green')."%s".color('reset')." (awitLoginHost)",$ldapLoginHost); $loginHost = $ldapLoginHost; -- GitLab