xref: /aosp_15_r20/external/protobuf/fix_permissions.sh (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1#!/bin/bash
2for file in $(find . -type f); do
3  if [ "$(head -c 2 $file)" == "#!" ]; then
4    chmod u+x $file
5  else
6    chmod a-x $file
7  fi
8done
9