Skip to content

Commit

Permalink
build_toolchains: Make variables local
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Nov 1, 2023
1 parent 3efb48f commit cf65da0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_toolchains
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ stage4/root_overlay: ${ROOT_OVERLAY}
EOF
catalyst_stage_default
}

create_provenance_overlay() {
local root_overlay="$1"
local f d
while read f; do
d="${f%/*}"
mkdir -p "${root_overlay}${d}/"
Expand All @@ -36,6 +38,7 @@ create_provenance_overlay() {
local scripts_git=/mnt/host/source/src/scripts/.git
# `git rev-parse` fails due to the safe.directory setting in SDK container.
# Open-code the ref lookup
local scripts_hash
read scripts_hash <"${scripts_git}/HEAD"
if [[ "${scripts_hash}" == "ref:"* ]]; then
read scripts_hash<"${scripts_git}/${scripts_hash#ref: }"
Expand Down

0 comments on commit cf65da0

Please sign in to comment.