Dorward's Ramblings

Windows touched my file permissions

Published on

A Windows system made a commit to a branch and then I had to merge it. There were +xs everywhere, and guess who got to clean them up?

Perl to the rescue!

bzr diff | grep properties\ changed | perl -pe”\$_ =~ s/^.*?’//; \$_ =~ s/’.*\$//; \$_ =~ s/ /\\\\ /g” | xargs chmod -x