diff options
-rwxr-xr-x | bin/ssh-forcecommand | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ssh-forcecommand b/bin/ssh-forcecommand index 93ba1a3..36bc9ef 100755 --- a/bin/ssh-forcecommand +++ b/bin/ssh-forcecommand @@ -19,12 +19,11 @@ while ( my $line = <$conf> ) { } close($conf) or die("Cannot close $conffile: $!\n"); -if ( $command{$input} ) { - exec( $command{$input} ); - exit 1; +if ( not $command{$input} ) { + die("Unknown command\n"); } -die("Unknown command\n"); +exec( $command{$input} ); __END__ |