Merge #10771: Remove unused variables in shell scripts