diff options
author | Shaun McCance <shaunm@gnome.org> | 2019-01-13 18:06:06 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2019-01-13 18:07:13 -0500 |
commit | 794feea447da856d32d10fd74582b0af86a887d1 (patch) | |
tree | 489d7c4bee72f1968aea5653d1b057009bd35a89 /tools | |
parent | da3f6f774917d82bcd153bc73356bec67a383896 (diff) | |
download | yelp-tools-794feea447da856d32d10fd74582b0af86a887d1.tar.gz |
yelp-build: Don't spit out error about missing stack files
Bare sh doesn't have nullglob, so we have to check the existence of
filenames we got from iterating over a glob.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/yelp-build.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/yelp-build.in b/tools/yelp-build.in index 447eda9..8438a23 100755 --- a/tools/yelp-build.in +++ b/tools/yelp-build.in @@ -195,7 +195,9 @@ yelp_cache_in () { yelp_cache_in_site "$page" else for sub in "$page"/*.page "$page"/*.stack; do - yelp_cache_in_page "$sub" + if [ -e "$page" ]; then + yelp_cache_in_page "$sub" + fi done fi else |