From 5423665a6424de7dca6efec0ad8b2d93ca267326 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 30 Nov 2010 20:44:42 -0800 Subject: Propgate error code from my_commit in command wrapper --- scripts/vyatta-cfg-cmd-wrapper | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3