mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Revert "iop: genconfig_wrap: Depricate --clean option"
This reverts commit 6b93fd6e27.
This commit is contained in:
parent
45f47de514
commit
749e095b04
1 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
function to_lowercase {
|
function to_lowercase {
|
||||||
local params=()
|
local params=()
|
||||||
for param in "$@"; do
|
for param in "$@"; do
|
||||||
params+=("$(tr '[:upper:]' '[:lower:]' <<< "$param")")
|
params+=("$(echo "$param" | tr '[:upper:]' '[:lower:]')")
|
||||||
done
|
done
|
||||||
echo "${params[@]}"
|
echo "${params[@]}"
|
||||||
}
|
}
|
||||||
|
|
@ -19,11 +19,16 @@ function genconfig {
|
||||||
if [[ ${args[0]} == -* ]]; then
|
if [[ ${args[0]} == -* ]]; then
|
||||||
# Convert options for target script
|
# Convert options for target script
|
||||||
if [[ ${args[0]} == "-b" || ${args[0]} == "--boards" ]]; then
|
if [[ ${args[0]} == "-b" || ${args[0]} == "--boards" ]]; then
|
||||||
args=("--list")
|
args=()
|
||||||
|
args[0]="-l"
|
||||||
|
elif [[ ${args[0]} == "-c" || ${args[0]} == "--clean" ]]; then
|
||||||
|
args=()
|
||||||
|
args[0]="-c"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"${target_script}" "${args[@]}"
|
${target_script} ${args[*]}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
register_command "genconfig" "Generate configuration for board and customer"
|
register_command "genconfig" "Generate configuration for board and customer"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue