Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

assign grep results, not return status

  • Loading branch information...
commit 2b9ae74e618d8383da1b2ed78df55653d9106d67 1 parent 2482b03
@jnorell jnorell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  vzfirewall
View
2  vzfirewall
@@ -31,7 +31,7 @@ if ($opt{conf}) {
if ($opt{dir}) {
$DIR = $opt{dir};
} else {
- $DIR = grep { -d $_ } ("/etc/sysconfig/vz-scripts", "/etc/vz/conf");
+ ($DIR) = grep { -d $_ } ("/etc/sysconfig/vz-scripts", "/etc/vz/conf");
}
unless ($DIR && -d $DIR) {
Please sign in to comment.
Something went wrong with that request. Please try again.