cli: fix return value of package_cmd().
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 18 Mar 2015 04:44:44 +0000 (12:44 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 26 Mar 2015 20:38:05 +0000 (21:38 +0100)
commit54ca5ae34788d4fc6afc10dfbed69517badf5cd8
tree9e44428530f8b1418e03851b9c0c42fea6c1a4fc
parent90ba7cac9dc74210424d8b09229cdd29571fbcc1
cli: fix return value of package_cmd().

It's a bug revealed by commit 446e774 "cli: properly unload package
before quit".  The current code would exit with value 1 even if
uci_export() succceeded.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
cli.c