Skip to content

Commit

Permalink
quote expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
pyf98 committed Apr 30, 2022
1 parent f6731cd commit f15e6ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ while IFS= read -r expdir; do
|---|---|---|
EOF

for result in ${expdir}/*/*/score_${type}/result.${case}.txt; do
for result in "${expdir}"/*/*/"score_${type}"/"result.${case}.txt"; do
inference_tag=$(echo "${result}" | rev | cut -d/ -f4 | rev)
test_set=$(echo "${result}" | rev | cut -d/ -f3 | rev)
score=$(sed -n '5p' "${result}" | cut -d ' ' -f 3 | tr -d ',')
Expand Down

0 comments on commit f15e6ad

Please sign in to comment.