#!/bin/bash # routes file is there because if no files were modified rubocop would fix all git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop --fix ./config/routes.rb