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/485/head
parent
029fbf470e
commit
aeeabf5d1c
Loading…
Reference in new issue