summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Gass <mxey@ghosthacking.net>2011-05-23 08:07:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-23 10:50:48 +0200
commit09e72697d4d8729f4a5ed3fd5457e64371eadf14 (patch)
tree986ab82eca0a7f25f7d392a0eeb591c034dece2a
parentbb7634d7913c66ec0bfdfc8cf22953d2ab010bdc (diff)
Change command existence check to be like other checks
Conflicts: bin/ssh-forcecommand
-rwxr-xr-xbin/ssh-forcecommand3
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__