Skip to content

Commit 0918ff8

Browse files
committed
fix(assembler): change file move to copy for standard component files injection
1 parent 8fdc61a commit 0918ff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

automation-tools/assembler.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,11 @@ finalize() {
522522
fi
523523

524524
# Inject standard component files if present
525-
local inject_files=("component_launcher.sh" "manifest.json" "functions.sh" "prepare_component.sh" "artifacts/version")
525+
local inject_files=("component_launcher.sh" "manifest.json" "functions.sh" "prepare_component.sh" "version")
526526
for file in "${inject_files[@]}"; do
527527
full_path="$component/$file"
528528
if [[ -f "$full_path" ]]; then
529-
mv "$full_path" "$artifact_dir"
529+
cp "$full_path" "$artifact_dir"
530530
[[ "$file" == *.sh ]] && chmod +x "$artifact_dir/$(basename "$file")"
531531
fi
532532
done

0 commit comments

Comments
 (0)