Created
May 24, 2016 13:22
-
-
Save nbeernink/2e246ead9abd7e0188780c75c59526a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for manifest in $(find manifests/ -type f -iname '*.pp'); do | |
sed -i 's/[ \t]*$//' $manifest #strip whitespace | |
vim -c 'normal gg=G' -c 'wq' $manifest #indent all lines properly (converting tabs to spaces, etc) | |
puppet-lint --no-80chars-check --no-documentation-check --fix $manifest #fix puppet style issues | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment