summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2019-01-13 18:06:06 -0500
committerShaun McCance <shaunm@gnome.org>2019-01-13 18:07:13 -0500
commit794feea447da856d32d10fd74582b0af86a887d1 (patch)
tree489d7c4bee72f1968aea5653d1b057009bd35a89
parentda3f6f774917d82bcd153bc73356bec67a383896 (diff)
downloadyelp-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.
-rwxr-xr-xtools/yelp-build.in4
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