diff options
-rwxr-xr-x | bin/ssh-forcecommand | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ssh-forcecommand b/bin/ssh-forcecommand index 7b024a7..a9d359d 100755 --- a/bin/ssh-forcecommand +++ b/bin/ssh-forcecommand @@ -23,7 +23,8 @@ if ( not $command{$origcmd} ) { die("Unknown command: $origcmd\n"); } -exec( $command{$origcmd} ); +my $cmd = $command{$origcmd} or die "Unknown command: $origcmd\n"; +exec $cmd; __END__ |