Page MenuHomeDevCentral

Simplify autochmod-git
AcceptedPublic

Authored by dereckson on Fri, Mar 6, 19:29.

Details

Reviewers
yousra
Summary

This is a follow-up for 7d91908d.

Test Plan

Tested on Complector on /opt/salt/nasqueron-operations

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Warnings
Unit
No Test Coverage
Branch
autochmod-git-update
Build Status
Buildable 6431
Build 6715: arc lint + arc unit

Event Timeline

dereckson created this revision.

About shellcheck linter issues.

As documented in the commit message, we trade whitespace security to straightforward convenience knowing we don't use space in file names.

As such, we want to use space for word splitting in the output of find command, space is a valid separator between files in our repository.

I've discovered X option in chmod that solves the issue nicely, by setting executable bit only where needed (already executable files and directories), so we can keep the find approach and stay safe for whitespaces.

dereckson retitled this revision from Use directly find without xargs to fix repository permissions to Simplify autochmod-git.Fri, Mar 6, 19:50
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Sun, Mar 8, 22:07