diff --git a/shared/build-lib.sh b/shared/build-lib.sh index 1440950..962b2d6 100755 --- a/shared/build-lib.sh +++ b/shared/build-lib.sh @@ -176,7 +176,10 @@ _source_commit_ref() { _source_commit_slug() { _ref=$(_source_commit_ref) _full_sha=$(git -C "$root_dir" rev-parse "$_ref" 2>/dev/null || echo "0000000000000000") - _words_file="$root_dir/shared/build-words.txt" + # build-lib.sh is sourced from each tool's build.sh as + # "$root_dir/../shared/build-lib.sh"; the wordlist lives next to + # this file in the same shared/ directory. + _words_file="$root_dir/../shared/build-words.txt" if [ ! -f "$_words_file" ]; then # Fall back to plain short SHA if the wordlist is missing # (e.g. running from a checkout that predates this feature).