fix: resolve directory overwrite error in checksums generation

Use find -mindepth 2 to only move files from subdirectories, avoiding
the 'mv: cannot overwrite directory' error when flattening the artifact
directory structure. This ensures only the actual binary and checksum
files are moved, not the directories themselves.

Fixes the sha256sum failure in the Generate Checksums workflow step.
This commit is contained in:
Tobias Gesellchen
2026-01-10 01:04:49 +01:00
parent 666839dd4f
commit 1a1d37b885
+2 -2
View File
@@ -185,8 +185,8 @@ jobs:
find . -type f -name "soundtouch-cli-*"
# Flatten directory structure (artifacts are in subdirs)
# Move all binary files to current directory
find . -type f -name "soundtouch-cli-*" -exec mv {} . \;
# Move all binary and checksum files to current directory
find . -mindepth 2 -type f -name "soundtouch-cli-*" -exec mv {} . \;
# Remove empty directories
find . -type d -empty -delete