Skip to content

Commit a06cc9c

Browse files
committed
Refactor cleanup of build artifacts in prepare-release script
1 parent 9b03eb6 commit a06cc9c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

dev/prepare-release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ CURRENT_GID=$(id -g)
3636
# =============================================================================
3737
echo -e "\n${BLUE}[1/4] Building static binary...${NC}"
3838

39-
# Clean build artifacts
40-
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile alp-build
39+
# Clean build artifacts (alp-build may be root-owned from a previous Docker run)
40+
if [ -d alp-build ]; then
41+
docker run --rm -v "$PWD":/src alpine:3.20 rm -rf /src/alp-build
42+
fi
43+
rm -f CMakeCache.txt cmake_install.cmake Makefile
4144

4245
# Run docker with user mapping to avoid permission issues
4346
docker run --rm \

0 commit comments

Comments
 (0)