summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-30 20:44:42 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-30 20:44:42 -0800
commit5423665a6424de7dca6efec0ad8b2d93ca267326 (patch)
tree73d8bd31bf22eea837d4a3b0f5443688751bd409 /scripts
parentff8f0b65ad56d4f312b32299602030068d405cb6 (diff)
downloadvyatta-cfg-5423665a6424de7dca6efec0ad8b2d93ca267326.tar.gz
vyatta-cfg-5423665a6424de7dca6efec0ad8b2d93ca267326.zip
Propgate error code from my_commit in command wrapper
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index a5db7d5..b0ec349 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -70,8 +70,7 @@ case "$1" in
export COMMIT_VIA=cfg-cmd-wrapper
${vyatta_sbindir}/my_commit -a >> /tmp/vyatta-commit.log
${vyatta_sbindir}/my_commit -s >> /tmp/vyatta-commit.log
- ${vyatta_sbindir}/my_commit -e -d >> /tmp/vyatta-commit.log
- exit 0
+ exec ${vyatta_sbindir}/my_commit -e -d >> /tmp/vyatta-commit.log
;;
commit_with_error)
exec ${vyatta_sbindir}/my_commit