diff --git a/vendors.php b/vendors.php index 806c462967..bcf28df174 100755 --- a/vendors.php +++ b/vendors.php @@ -40,8 +40,8 @@ foreach ($deps as $dep) { $installDir = $vendorDir.'/'.$name; if (!is_dir($installDir)) { - system(sprintf('git clone %s "%s"', $url, $installDir)); + system(sprintf('git clone %s %s', $url, escapeshellarg($installDir))); } - system(sprintf('cd "%s" && git fetch origin && git reset --hard %s', $installDir, $rev)); + system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), $rev)); }