Skip to content

Commit

Permalink
Fix find command syntax to find all dist-packages subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
furgo16 authored Feb 25, 2025
1 parent 24db89c commit 072054a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ parts:
set -eux
for snap in "kf5-core22"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && \
find . -type f,l -not -path "./usr/lib/python3/dist-packages/" \
find . -type f,l \
-not -path "./usr/lib/python3/dist-packages/*" \
-not -name 'libblas.so*' \
-not -name 'liblapack.so*' \
-exec rm -f "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
Expand Down

0 comments on commit 072054a

Please sign in to comment.