summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-04-10 11:25:43 +0200
committerTom Rini <trini@konsulko.com>2015-04-10 11:54:06 -0400
commit6d0f45260846b8cafcae6a815178ff8ece7dea7a (patch)
tree6bbe20d30ad66b83c8c8632bc76539485a724c84 /README
parent763754549fa818d74c41e9e325e76fd881b42269 (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
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions