Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new variable PRECOMMIT_HOOK #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvaubourg
Copy link

I'm proposing a new variable PRECOMMIT_HOOK, to let admins execute commands on the configs before the commit. I need this to avoid unecessary commits (with their mails), juste because the occupation of the nvram slightly changed.

Example of lines which can be annoying:

sed '/^!Flash: harddisk:.*total/d' -i configs/*
sed '/^!Flash: nvram:.*total/d' -i configs/*
sed '/^!\s\+Not ready set/d' -i configs/*

I currently cheat by doing that in a DIFFSCRIPT script, but it's not really appropriate.

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant