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
# 0. Run `brew install handbrake` to be able to use CLI with this script | |
# 1. Open Automator app in MacOS | |
# 2. File > New. Select "Quick Action" from the popup | |
# 3. In opened window, at the top center, "Workflow receives current" select as "files and folders", | |
# and next to it "in" select "Finder.app". | |
# 4. In the search field on the left find "Run Shell Script" and DnD it into the main view. | |
# 5. On the right select "Pass input" to "as arguments" | |
# 6. Insert script below and Save. Give it meaningful name that will be displayed in the Quick Actions | |
# 7. Enjoy! |
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
# !/bin/sh | |
files=$(git diff --cached --name-only --diff-filter=ACM | grep -E "(.js|.vue)$") | |
if [ "$files" == "" ]; then | |
exit 0 | |
fi | |
lintfiles="" | |
errors="false" |