Commit 1bf8d450 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: some farms have non-alphanumeric characters in their cluster name

parent 2e99a429
...@@ -11,7 +11,7 @@ sub name { # also called to check for availability; assume LSF is available if ...@@ -11,7 +11,7 @@ sub name { # also called to check for availability; assume LSF is available if
my $mcni = 'My cluster name is'; my $mcni = 'My cluster name is';
if(my $name = `lsid 2>/dev/null | grep '$mcni' `) { if(my $name = `lsid 2>/dev/null | grep '$mcni' `) {
$name=~/^$mcni\s+(\w+)/; $name=~/^$mcni\s+(\S+)/;
return $1; return $1;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment