mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
build_library/catalyst.sh: Make some variables local
This commit is contained in:
parent
ea29482d9a
commit
120a746c88
@ -157,6 +157,8 @@ catalyst_init() {
|
|||||||
switch_to_strict_mode
|
switch_to_strict_mode
|
||||||
eval set -- "${FLAGS_ARGV}"
|
eval set -- "${FLAGS_ARGV}"
|
||||||
|
|
||||||
|
local stage
|
||||||
|
|
||||||
if [[ -n "${FORCE_STAGES}" ]]; then
|
if [[ -n "${FORCE_STAGES}" ]]; then
|
||||||
STAGES="${FORCE_STAGES}"
|
STAGES="${FORCE_STAGES}"
|
||||||
elif [[ $# -eq 0 ]]; then
|
elif [[ $# -eq 0 ]]; then
|
||||||
@ -248,6 +250,8 @@ write_configs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build_stage() {
|
build_stage() {
|
||||||
|
local stage srcpath catalyst_conf target_tarball
|
||||||
|
|
||||||
stage="$1"
|
stage="$1"
|
||||||
srcpath="$2"
|
srcpath="$2"
|
||||||
catalyst_conf="$3"
|
catalyst_conf="$3"
|
||||||
@ -299,6 +303,8 @@ catalyst_build() {
|
|||||||
write_configs
|
write_configs
|
||||||
build_snapshot
|
build_snapshot
|
||||||
|
|
||||||
|
local used_seed
|
||||||
|
|
||||||
used_seed=0
|
used_seed=0
|
||||||
if [[ "$STAGES" =~ stage1 ]]; then
|
if [[ "$STAGES" =~ stage1 ]]; then
|
||||||
build_stage stage1 "$SEED"
|
build_stage stage1 "$SEED"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user