That is to overcome warnings from shellcheck In .clusterfuzzlite/build.sh line 8: hash=($(sha256sum "$file")) ^------------------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). In .clusterfuzzlite/build.sh line 9: cp "$file" "/tmp/oxigraph_$1/$hash" ^---^ SC2128 (warning): Expanding an array without an index only gives the first element. although original code is making a cute use of an array, if we are to follow shellcheck and use mapfile or read -a - and then use explicit index -- makes it just too cumbersome. IMHO explicit awk would be easier to read etc.pull/479/head
parent
df0604328e
commit
9c6b92cc26
Loading…
Reference in new issue