[CI] Replace shellcheck-suppressed patterns flagged in #52572 with clean equivalents (#53341)

Signed-off-by: Turner Jabbour <doubleujabbour@gmail.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Turner Jabbour
2026-10-02 11:30:04 +00:00
committed by GitHub
co-authored by Claude Sonnet 5
parent 6e4efafc6e
commit e2cb5ee46c
3 changed files with 5 additions and 10 deletions
+1 -2
View File
@@ -117,8 +117,7 @@ echo "Building TorchCodec (MAX_JOBS=$MAX_JOBS)..."
pip wheel . --no-build-isolation --no-deps -w "$BUILD_DIR/dist"
# Install the built wheel
# shellcheck disable=SC2012 # `ls` sorting is relied on here; TODO: switch to `find` in a follow-up cleanup PR
BUILT_WHEEL=$(ls "$BUILD_DIR/dist"/torchcodec-*.whl 2>/dev/null | head -1)
BUILT_WHEEL=$(find "$BUILD_DIR/dist" -maxdepth 1 -name 'torchcodec-*.whl' -print -quit)
if [ -z "$BUILT_WHEEL" ]; then
echo "Error: No wheel produced"
exit 1