Skip to content
Snippets Groups Projects
Commit e5e897c0 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
parent 2453de99
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment