diff --git a/scripts/setup/bootstrap.sh b/scripts/setup/bootstrap.sh index 0fb9af207e2c77..23b8087ff54460 100644 --- a/scripts/setup/bootstrap.sh +++ b/scripts/setup/bootstrap.sh @@ -57,19 +57,19 @@ _install_additional_pip_requirements() { } _submodules_need_updating() { - # Validates if a set o submodules that should always be checked out are up to date + # Validates if a set of submodules that should always be checked out are up to date. - # Pigweed will be up to date on an initial setup, however it may change over time - # the rest are a small subset of things that are always checked out (have no platform attachment) + # Pigweed will be up to date on an initial setup, however it may change over time. + # The rest are a small subset of things that are always checked out (have no platform attachment). _SUBMODULE_PATHS=( "third_party/pigweed/repo" "third_party/openthread/repo" "third_party/editline/repo" ) - for path in "${_SUBMODULE_PATHS[@]}"; do - if git submodule status "$path" | grep -E '^-' >/dev/null 2>&1; then - echo "git shows that $path has changes" + for submodule_path in "${_SUBMODULE_PATHS[@]}"; do + if git submodule status "$submodule_path" | grep -E '^-' >/dev/null 2>&1; then + echo "git shows that $submodule_path has changes" unset _SUBMODULE_PATHS return 0 # Success fi