summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <[email protected]>2021-12-20 18:31:56 -0500
committerTom Rini <[email protected]>2022-04-07 16:50:42 -0400
commitec57bd745470fc47b278c21d2eebc95c27c442e5 (patch)
treeb8112d9b6b585183d99afcb49b0557f278e3b206 /scripts
parent8d61237edbf6314a701cf78da2c5893a73ff5438 (diff)
cmd: env: Add `indirect` to indirectly set values
This allows an ergonomic-enough approximation of ${!variable} expansion. This could be used the following way: ``` for target in ${boot_targets}; do env indirect target_name target_name_${target} # ... done ``` Assuming `target_name_mmc0` and similar are set appropriately. A default value can be optionally provided. Note: this acts on environment variables, not hush variables. Signed-off-by: Samuel Dionne-Riel <[email protected]> Cc: Simon Glass <[email protected]> Cc: "Marek BehĂșn" <[email protected]> [trini: Don't enable by default]
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions