Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better handling for path globs

  • Loading branch information...
commit 024e3a74fa176403e751f652a30ff6c75138617d 1 parent 70f9e0c
@jlipps authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/paraunit
View
3  bin/paraunit
@@ -4,7 +4,8 @@
function getFiles($glob, $base_dir)
{
$test_files = array();
- $files = glob(joinPaths($base_dir, $glob), GLOB_MARK);
+ $real_glob = $glob[0] == "/" ? $glob : joinPaths($base_dir, $glob);
+ $files = glob($real_glob, GLOB_MARK);
foreach ($files as $file) {
if ($file != '.' && $file != '..') {
if ($file[strlen($file)-1] === '/') {
Please sign in to comment.
Something went wrong with that request. Please try again.