Skip to content

Commit

Permalink
Merge pull request #14097 from JuliaLang/kf/relpathscript
Browse files Browse the repository at this point in the history
Fix relative path script when one directory is the other's prefix
  • Loading branch information
Keno committed Nov 23, 2015
2 parents 3da9aee + 19f90ef commit c37bc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/relative_path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
common_part=$source # for now
result="" # for now

while [[ "${target#$common_part}" == "${target}" ]]; do
while [[ "${target#$common_part/}" == "${target}" ]]; do
# no match, means that candidate common part is not correct
# go up one level (reduce common part)
common_part="$(dirname $common_part)"
Expand Down

0 comments on commit c37bc22

Please sign in to comment.