Commit 9489ca32 authored by fuyanbin's avatar fuyanbin
Browse files

fix: typo

parent beca0a5b
...@@ -84,17 +84,17 @@ build_image() { ...@@ -84,17 +84,17 @@ build_image() {
rm -rf "./$build_dir/" rm -rf "./$build_dir/"
} }
genarae_vendor_confg() { generate_vendor_confg() {
local yaml_file_src local yaml_file_src
local yaml_file local yaml_file
yaml_file="$build_dir"/vendor.yaml yaml_file="$build_dir"/vendor.yaml
yaml_file_src="$build_dir"/vendor.yaml.src yaml_file_src="$build_dir"/vendor.yaml.src
cp vendor.yaml.src "$yaml_file_src" cp vendor.yaml.src "$yaml_file_src"
sed -i'' "s#$__VENDOR__/$VENDOR/g" "$yaml_file_src" sed -i'' "s#__VENDOR__#$VENDOR#g" "$yaml_file_src"
sed -i'' "s#$__ORGCODE__/$ORGCODE/g" "$yaml_file_src" sed -i'' "s#__ORGCODE__#$ORGCODE#g" "$yaml_file_src"
sed -i'' "s#$__CHROOT_TYPE__/$CHROOT_TYPE/g" "$yaml_file_src" sed -i'' "s#__CHROOT_TYPE__#$CHROOT_TYPE#g" "$yaml_file_src"
sed -i'' "s#$__DEPLOY__/$DEPLOY/g" "$yaml_file_src" sed -i'' "s#__DEPLOY__#$DEPLOY#g" "$yaml_file_src"
aio -m enc -i "$yaml_file_src" -o "$yaml_file" aio -m enc -i "$yaml_file_src" -o "$yaml_file"
} }
...@@ -109,8 +109,12 @@ update_hugepall_zipfile() { ...@@ -109,8 +109,12 @@ update_hugepall_zipfile() {
cp "$hugep_zip_file_origin" "$hugep_zip_file" cp "$hugep_zip_file_origin" "$hugep_zip_file"
zip -u -j "$yaml_file" "$hugep_zip_file" zip -u -j "$hugep_zip_file" "$yaml_file"
} }
export PATH="$PATH":"$(pwd)"/tools/ export PATH="$PATH":"$(pwd)"/tools/
generate_vendor_confg
update_hugepall_zipfile
build_image "$IMAGE_FILE" build_image "$IMAGE_FILE"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment