Commit 52d6b450 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to order of precedence in directory check expression.

(I was in /proj and being told I was not).
parent 1b1912a4
......@@ -19,7 +19,7 @@ $identity = "-i $ENV{HOME}/.ssh/identity";
$cwd = $ENV{PWD};
# We only want to actually change to $CWD if it will actually
# be accesible on the other machine - if it's in /users or /proj
if (!($cwd =~ qr|/users|) || ($cwd =~ qr|/proj|)) {
if (!($cwd =~ qr|/users|) && !($cwd =~ qr|/proj|)) {
warn "In order to make sure that this command has access to any\n";
warn "files it may need to read, please change directories into\n";
warn "your home directory (in /users/) or your project directory\n";
Supports Markdown
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