Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion configuration/steps/commands/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ def as_cmd_arg(self) -> list[str]:
util.Interpolate(
f"""
mkdir -p {self.destination} &&
cp -r {package_list} {self.destination}
for package in {package_list}; do
if [ ! -e "$package" ]; then
echo "Warning: package '$package' does not exist and will be skipped."
continue
fi
cp -r $package {self.destination}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we wont verbose output here cp -vr ? Just a question, maybe a bad idea.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not much interest in a verbose output for this step

done
"""
),
]
Expand Down