vncserver: better test env detection
This commit is contained in:
@@ -31,7 +31,7 @@ $slashndx = rindex($0, "/");
|
|||||||
if($slashndx>=0) {
|
if($slashndx>=0) {
|
||||||
$exedir = substr($0, 0, $slashndx+1);
|
$exedir = substr($0, 0, $slashndx+1);
|
||||||
}
|
}
|
||||||
if ($exedir =~ m!^unix/!) {
|
if ($exedir =~ m!unix/!) {
|
||||||
$exedir = "/usr/bin/";
|
$exedir = "/usr/bin/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user