From 09e72697d4d8729f4a5ed3fd5457e64371eadf14 Mon Sep 17 00:00:00 2001 From: Maximilian Gass Date: Mon, 23 May 2011 08:07:49 +0200 Subject: Change command existence check to be like other checks Conflicts: bin/ssh-forcecommand --- bin/ssh-forcecommand | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__ -- cgit v1.2.3