Skip to content

Commit 5a3af68

Browse files
authored
Merge pull request #1936 from h-east/support-symbolic-link
Support symbolic link
2 parents f9b2b5f + a40600a commit 5a3af68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/script/get_doc_info.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ version7.txt
2929
exclude_files=(`echo $exclude_files_str`)
3030
unchanged_file_count=0
3131

32-
for fp in `ls -1 ${new_doc_dir}/*.txt`; do
33-
fname=`basename ${fp}`
32+
for sfp in `ls -1 ${new_doc_dir}/*.txt`; do
33+
fname=`basename ${sfp}`
34+
fp=`readlink -f ${sfp}`
3435
old_fp=${old_doc_dir}/${fname}
3536
for (( i = 0; i < ${#exclude_files[@]}; ++i )); do
3637
if [ ${fname} == ${exclude_files[$i]} ]; then

0 commit comments

Comments
 (0)