Dorward

Windows touched my file permissions

09 June 2015

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