ignore shellcheck error SC2068

This commit is contained in:
Daiki Ihara 2020-11-03 22:57:56 +09:00
parent a1af001a55
commit 5ea028ef76

View File

@ -53,7 +53,8 @@ modules=($modules)
use_git=""
urls="$(git config --file .gitmodules --get-regexp '\.url$' | cut -d' ' -f2)"
urls=($urls)
for i in "${!modules[@]}"; do
# shellcheck disable=SC2068
for i in ${!modules[@]}; do
module=${modules[$i]}
if [[ " $included " = *" $module "* ]]; then
commit="$(git ls-tree HEAD $module | awk '{print $3}')"