diff options
author | root <root@vyatta-build.(none)> | 2010-10-01 09:54:43 -0700 |
---|---|---|
committer | root <root@vyatta-build.(none)> | 2010-10-01 09:54:43 -0700 |
commit | 00694d6b4c6fdad70401f6fce86d30e85b91f1ec (patch) | |
tree | 7a40dcd7d71ecf4187ee15fecc3d8ceaddd435c5 | |
parent | 9f867c092263bfa598aa6de309fbfaa4f16336f4 (diff) | |
download | vyatta-cfg-00694d6b4c6fdad70401f6fce86d30e85b91f1ec.tar.gz vyatta-cfg-00694d6b4c6fdad70401f6fce86d30e85b91f1ec.zip |
add commit wrapper hook that allows errors with location to be written to stdout.
-rwxr-xr-x | scripts/vyatta-cfg-cmd-wrapper | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper index 2d22235..6eeff99 100755 --- a/scripts/vyatta-cfg-cmd-wrapper +++ b/scripts/vyatta-cfg-cmd-wrapper @@ -85,6 +85,10 @@ case "$1" in /opt/vyatta/sbin/my_commit -e -d >> /tmp/bar RET_STATUS=$? ;; + commit_with_error) + /opt/vyatta/sbin/my_commit -e + RET_STATUS=$? + ;; save) /opt/vyatta/sbin/vyatta-save-config.pl "${@:2}" RET_STATUS=$? |