Skip to content
Browse files

better handling for path globs

  • Loading branch information...
1 parent 70f9e0c commit 024e3a74fa176403e751f652a30ff6c75138617d @jlipps committed
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] === '/') {

0 comments on commit 024e3a7

Please sign in to comment.
Something went wrong with that request. Please try again.