diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2023-04-03 15:50:00 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-03 18:30:46 -0400 |
commit | 930ef109928969fa17b8ccf2a05aa4aeff10f3e3 (patch) | |
tree | 7d29d44d8dcee0ff2081d043eae3e476f9d621a5 /test/py | |
parent | d30fbabadebd8b08e2a509a86ff6d4b59ed89f8a (diff) |
common: cli_hush: Restore clear local variable support
The u-boot hush shell doesn’t support the unset command to clear a
variable and therefore an empty value ("c=") should be a valid value
for the set_local_var function to clear the variable. This partial
reverts commit aa722529635c ("common: cli_hush: avoid dead code") and
only checks for a `=` in the string. Additionally explicit call the
unset_local_var function to remove the variable if the value is empty.
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py')
0 files changed, 0 insertions, 0 deletions