We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1581d commit fcd1381Copy full SHA for fcd1381
1 file changed
.github/workflows/build.yml
@@ -136,7 +136,9 @@ jobs:
136
cd .cache-build
137
if [ ! -d "linux-${FULL_VERSION}" ]; then
138
tar -xf ../linux-${FULL_VERSION}.tar.xz
139
- EXTRACTED_DIR=$(tar -tf ../linux-${FULL_VERSION}.tar.xz | head -1 | cut -f1 -d"/")
+ # Find the extracted dir from the filesystem instead of re-running tar -tf,
140
+ # which causes "stdout: write error" when piped to head (broken pipe).
141
+ EXTRACTED_DIR=$(find . -maxdepth 1 -mindepth 1 -type d | head -1 | sed 's|^\./||')
142
if [ "$EXTRACTED_DIR" != "linux-${FULL_VERSION}" ]; then
143
mv "$EXTRACTED_DIR" "linux-${FULL_VERSION}"
144
fi
0 commit comments