Skip to content

Instantly share code, notes, and snippets.

@dominickp
dominickp / pre-commit
Last active July 24, 2019 13:47
Switch scripting .sscript inflating pre-commit hook
#!/bin/sh
# Create a file with these contents in your repo at
# .git/hooks/pre-commit
# Place any .sscript files in a folder called Packed/
# Extract any .sscript files from a Packed/ directory
for i in `find . -name "*.sscript" -type f -exec echo \{\} \;`; do
# Only act if within a Packed directory