diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-16 05:20:21 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-16 05:42:04 (EST) |
commit | 45e8fd75c621899365406141d9b9fe0aab0183e0 (patch) | |
tree | 4062d98de17994484b740db259ef95902f76b789 /src/install.sh | |
parent | 8ab731bb1d411fd5a11eb8278ad344f7f8bd47c6 (diff) |
profile_prepare_install(): New function
profile_installer_type() will be the first caller of
_prof_proteanos_get_platforms() to be called, but it will be called in a
subshell. As a result, _prof_proteanos_get_platforms() would be called
twice.
To solve this, factor out _prof_proteanos_get_platforms() calls from
other functions, making them pure (subshell-safe).
Diffstat (limited to 'src/install.sh')
-rw-r--r-- | src/install.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/install.sh b/src/install.sh index e3e9819..c5d3a5a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -337,6 +337,7 @@ install_system() if [ "x${mirror}" = 'x' ]; then mirror="$(profile_select_mirror)" fi + profile_prepare_install "${mirror}" "${suite}" if ! profile_validate_archplat "${mirror}" "${arch}" "${plat}" \ "${suite}"; then |