diff --git a/scripts/module_check.sh b/scripts/module_check.sh index 977398a2ce3d06856935e77a91973ec2ecf4cf7b..8199f49caa83b6fd2ae0688ef508dfe48804b60b 100755 --- a/scripts/module_check.sh +++ b/scripts/module_check.sh @@ -1,5 +1,4 @@ #!/bin/bash -# shellcheck disable=SC2154 set -e @@ -15,8 +14,10 @@ fi need_sync=false for module in $GLUON_MODULES; do - var=$(echo "$module" | tr '[:lower:]/' '[:upper:]_') - eval 'commit_expected=${'"${var}"'_COMMIT}' + echo "Checking module '$module'" + var=${module//\//_} + _remote_commit=${var^^}_COMMIT + commit_expected=${!_remote_commit} prefix=invalid cd "$GLUONDIR/$module" 2>/dev/null && prefix="$(git rev-parse --show-prefix 2>/dev/null)"