Skip to content

Commit

Permalink
Recursively resolve symlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Dec 6, 2014
1 parent 1586bd2 commit a68c74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gcc-rtags-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for i in $(which -a "$(basename "$0")"); do
max=10
while [ $max -gt 0 -a -L "$filename" ]; do
max=$((max - 1))
link=$(readlink "$i")
link=$(readlink "$filename")
if echo "$link" | grep --quiet "^/"; then
filename="$link"
else
Expand Down

0 comments on commit a68c74e

Please sign in to comment.