Skip to content

Commit c28ef89

Browse files
committed
Avoid capturing the trailing /
1 parent ac3395f commit c28ef89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/tools/py/src/runfiles_interpreter.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ _activate_find_runfiles() {
2222
# find the manifest file and runfiles tree relative to the execroot.
2323

2424
# HACK: We can't lazy-match to the first /bin/, so we have to manually count four groups
25-
EXECROOT="$(echo "${1}" | sed 's/\(execroot\/[^\/]*\/[^\/]*\/[^\/]*\/[^\/]*\/\).*$/\1/' )"
25+
EXECROOT="$(echo "${1}" | sed 's/\(execroot\/[^\/]*\/[^\/]*\/[^\/]*\/[^\/]*\).*$/\1/' )"
2626
export RUNFILES_DIR="${EXECROOT}/${RUNFILES_PATH}"
2727
elif [[ "${1}" == *.runfiles/* ]]; then
2828
# Examples:

0 commit comments

Comments
 (0)