mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +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
|
||||
eval set -- "${FLAGS_ARGV}"
|
||||
|
||||
local stage
|
||||
|
||||
if [[ -n "${FORCE_STAGES}" ]]; then
|
||||
STAGES="${FORCE_STAGES}"
|
||||
elif [[ $# -eq 0 ]]; then
|
||||
@ -248,6 +250,8 @@ write_configs() {
|
||||
}
|
||||
|
||||
build_stage() {
|
||||
local stage srcpath catalyst_conf target_tarball
|
||||
|
||||
stage="$1"
|
||||
srcpath="$2"
|
||||
catalyst_conf="$3"
|
||||
@ -299,6 +303,8 @@ catalyst_build() {
|
||||
write_configs
|
||||
build_snapshot
|
||||
|
||||
local used_seed
|
||||
|
||||
used_seed=0
|
||||
if [[ "$STAGES" =~ stage1 ]]; then
|
||||
build_stage stage1 "$SEED"
|
||||
|
Loading…
x
Reference in New Issue
Block a user