We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c4d7d0 commit 10e5812Copy full SHA for 10e5812
1 file changed
cmd/gencopy/gencopy.bash.in
@@ -17,10 +17,14 @@ CONFIG_SHORT_PATH=@@CONFIG_SHORT_PATH@@
17
# either by reading the symbolic link or reading the runfiles manifest.
18
function find_runfile {
19
local runfile=$1
20
- if [ -f "$runfile" ]; then
+ if [ -L "$runfile" ]; then
21
readlink "$runfile"
22
return
23
fi
24
+ if [ -f "$runfile" ]; then
25
+ echo "$runfile"
26
+ return
27
+ fi
28
runfile=$(echo "$runfile" | sed -e 's!^\(\.\./\|external/\)!!')
29
if grep -q "^$runfile" MANIFEST; then
30
grep "^$runfile" MANIFEST | head -n 1 | cut -d' ' -f2
0 commit comments