commit | 0700db6dda9dccd57c8ec6d05c59a8ab30a73366 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Mon Feb 03 13:21:06 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Wed Feb 19 09:47:34 2014 -0500 |
tree | b2842a2aeffcdd10fbe7300920b2252f545d9b57 | |
parent | 4f6e1aa67aea63df7fd5a84df940518dc7c5cf2f [diff] |
cmd_test: implement -e test for file existence This is much like a regular shell's -e operator, except that it takes multiple arguments to specify the device type and device/partition ID in addition to the usual filename: if test -e mmc 0:1 /boot/boot.scr; then echo yes; else echo no; fi Signed-off-by: Stephen Warren <swarren@nvidia.com>