Skip to content

Commit

Permalink
Merge branch 'release-7.4.1' into cp23924-7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Oct 29, 2024
2 parents 552dcd4 + 4aea479 commit ec1d4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/bash/runfiles/runfiles.bash
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ function runfiles_rlocation_checked() {
local escaped=false
fi
# The extra space below is added because cut counts from 1.
local trim_length=$(echo -n "$search_prefix " | wc -c)
local trim_length=$(echo -n "$search_prefix " | wc -c | tr -d ' ')
# Escape the search prefix for use in the grep regex below *after*
# determining the trim length.
local result=$(__runfiles_maybe_grep -m1 "^$(echo -n "$search_prefix" | sed 's/[.[\*^$]/\\&/g') " "${RUNFILES_MANIFEST_FILE}" | cut -b ${trim_length}-)
local result=$(__runfiles_maybe_grep -m1 "^$(echo -n "$search_prefix" | sed 's/[.[\*^$]/\\&/g') " "${RUNFILES_MANIFEST_FILE}" | cut -b "${trim_length}-")
if [[ -z "$result" ]]; then
# If path references a runfile that lies under a directory that itself
# is a runfile, then only the directory is listed in the manifest. Look
Expand Down

0 comments on commit ec1d4ad

Please sign in to comment.