xref: /aosp_15_r20/external/cronet/third_party/protobuf/fix_permissions.sh (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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