| Index: recipe_modules/file/resources/fileutil.py
|
| diff --git a/recipe_modules/file/resources/fileutil.py b/recipe_modules/file/resources/fileutil.py
|
| index 7bd04c247dd621bc67c39b40dbcfbb878863a4ce..c02db54a2026eccaf53c6ef5a7d0142d485476b5 100755
|
| --- a/recipe_modules/file/resources/fileutil.py
|
| +++ b/recipe_modules/file/resources/fileutil.py
|
| @@ -154,7 +154,9 @@ def _Glob(base, pattern):
|
| cwd = os.getcwd()
|
| try:
|
| os.chdir(base)
|
| - print('\n'.join(sorted(glob.glob(pattern))))
|
| + hits = glob.glob(pattern)
|
| + if hits:
|
| + print('\n'.join(sorted(hits)))
|
| finally:
|
| os.chdir(cwd)
|
|
|
|
|