Skip to content

Commit f32753e

Browse files
committed
CI: avoid using subshell for cache mod detection
It's already called in a subshell due to $(last_cache_modified). Nested subshells should be fine, but in practice the CI builds are complaining with a weird error: sort: write failed: 'standard output': Broken pipe sort: write error Let's see if this change makes any difference!
1 parent 0aa8593 commit f32753e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ sh ci-build.sh || { echo "Maven build failed. Skipping melting pot tests."; exit
44

55
# Helper method to get the last cache modified date as seconds since epoch
66
last_cache_modified () {
7-
cache_modified=$(find ~/.cache/scijava/melting-pot -printf '%T@\n' | sort -r | head -n1)
8-
cache_modified=${cache_modified%.*}
9-
echo "$cache_modified"
7+
find ~/.cache/scijava/melting-pot -printf '%T@\n' | sort -r | head -n1 | sed 's/\..*$//'
108
}
119

1210
# Record the last time of cache modification before running melting-pot

0 commit comments

Comments
 (0)