Skip to content

Commit

Permalink
fix: CPATH persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Feb 10, 2025
1 parent b417528 commit 340d085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions craft_parts/plugins/jlink_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def get_build_commands(self) -> list[str]:
commands.append("CPATH=.")
commands.append(
"""
find ${CRAFT_PART_BUILD}/tmp -type f -name *.jar | while IFS= read -r file; do
CPATH=$CPATH:${file}
for file in $(find "${CRAFT_PART_BUILD}/tmp" -type f -name "*.jar"); do
CPATH="$CPATH:${file}"
done
find ${CRAFT_STAGE} -type f -name *.jar | while IFS= read -r file; do
CPATH=$CPATH:${file}
for file in $(find "${CRAFT_STAGE}" -type f -name "*.jar"); do
CPATH="$CPATH:${file}"
done
"""
)
Expand Down

0 comments on commit 340d085

Please sign in to comment.