commit | 6a889f20ac12f0da19b912f5030fb9d6f05e6f94 | [log] [tgz] |
---|---|---|
author | Stefan Agner <stefan@agner.ch> | Fri Apr 10 11:25:43 2015 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 10 11:54:06 2015 -0400 |
tree | 6bbe20d30ad66b83c8c8632bc76539485a724c84 | |
parent | 56f860fe94999cf74239510a894c7e72345e4e57 [diff] |
common, ubi: use positive return values for ubi check The ubi check command is expected to not fail and just check whether a volume exist or not. Currently, when a volume does not exist, the command fails which leads to an error: "exit not allowed from main input shell." Use 1 to indicate that a volume does not exist. This allows to use ubi check in an if statement, e.g. if ubi check rootfs; then; echo "exists"; else; echo "not there"; fi