This commit is contained in:
Aaron Bieber 2024-06-26 12:04:57 -06:00
parent c58f13b83f
commit e5309a709a
No known key found for this signature in database

View File

@ -14,14 +14,15 @@ my $VERSION = 'v0.0.1';
my @command_list; my @command_list;
my @ssh_cmd; my @ssh_cmd;
if (defined $ENV{SSH_ORIGINAL_COMMAND}) { if ( defined $ENV{SSH_ORIGINAL_COMMAND} ) {
@ssh_cmd = split(" ", $ENV{SSH_ORIGINAL_COMMAND}); @ssh_cmd = split( " ", $ENV{SSH_ORIGINAL_COMMAND} );
shift @ssh_cmd; shift @ssh_cmd;
} }
if (@ARGV > @ssh_cmd) { if ( @ARGV > @ssh_cmd ) {
@command_list = @ARGV; @command_list = @ARGV;
} else { }
else {
@command_list = @ssh_cmd; @command_list = @ssh_cmd;
} }