From 38a5e0720d662297c36e4f9b50e794fcf6fe1ae0 Mon Sep 17 00:00:00 2001 From: Ed Reel Date: Fri, 27 Jan 2017 09:55:49 -0600 Subject: [PATCH] Fix PHP Notice: Undefined variable: windows in ~/.terminus/plugins/terminus-site-mount-plugin/src/Commands/SiteMountCommand.php on line 154 --- src/Commands/SiteMountCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/SiteMountCommand.php b/src/Commands/SiteMountCommand.php index 0cbb58f..89cba65 100644 --- a/src/Commands/SiteMountCommand.php +++ b/src/Commands/SiteMountCommand.php @@ -151,7 +151,7 @@ protected function commandExists($command) $test_command = WINDOWS ? 'where' : 'command -v'; $file = popen("$test_command $command", 'r'); $result = fgets($file, 255); - return $windows ? !preg_match('#Could not find files#', $result) : !empty($result); + return WINDOWS ? !preg_match('#Could not find files#', $result) : !empty($result); } /**