armbian-next: [focal-host] remove usages of declare -I, not supported under focal's bash
- this is bad/terrible and will cause a lot of shellcheck errors... but such is life
This commit is contained in:
parent
6dda660fb6
commit
eda272045d
@ -3,8 +3,7 @@
|
||||
function kernel_main_patching_python() {
|
||||
prepare_pip_packages_for_python_tools
|
||||
|
||||
# outer scope variables
|
||||
declare -I kernel_drivers_patch_file kernel_drivers_patch_hash
|
||||
# outer scope variables: kernel_drivers_patch_file kernel_drivers_patch_hash
|
||||
|
||||
declare patch_debug="${SHOW_DEBUG:-${DEBUG_PATCHING:-"no"}}"
|
||||
declare temp_file_for_output
|
||||
|
||||
@ -58,7 +58,7 @@ function kernel_drivers_create_patches() {
|
||||
function kernel_drivers_prepare_harness() {
|
||||
declare kernel_work_dir="${1}"
|
||||
declare kernel_git_revision="${2}"
|
||||
declare -I target_patch_file # outer scope variable
|
||||
# outer scope variable: target_patch_file
|
||||
|
||||
declare -a drivers=(
|
||||
driver_generic_bring_back_ipx
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
function uboot_main_patching_python() {
|
||||
prepare_pip_packages_for_python_tools
|
||||
|
||||
declare -I uboot_work_dir # outer scope variable
|
||||
# outer scope variable: uboot_work_dir
|
||||
|
||||
temp_file_for_output="$(mktemp)" # Get a temporary file for the output.
|
||||
# array with all parameters; will be auto-quoted by bash's @Q modifier below
|
||||
|
||||
@ -18,7 +18,7 @@ function compile_uboot_target() {
|
||||
local uboot_work_dir=""
|
||||
uboot_work_dir="$(pwd)"
|
||||
|
||||
declare -I uboot_git_revision # use outer scope variable value
|
||||
# outer scope variable: uboot_git_revision
|
||||
|
||||
display_alert "${uboot_prefix} Checking out to clean sources SHA1 ${uboot_git_revision}" "{$BOOTSOURCEDIR} for ${target_make}"
|
||||
git checkout -f -q "${uboot_git_revision}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user