Skip to content

Commit

Permalink
Avoid duplicate ls. #1566
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 31, 2023
1 parent ecd400b commit 6678bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN \
--mount=type=cache,id=pip,target=/root/.cache/pip \
<<eot
set -- $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null)
test -n "${1:-}" && pip wheel $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null) --wheel-dir=/wheels
test -n "${1:-}" && pip wheel "$@" --wheel-dir=/wheels
eot

# Install app dependencies
Expand Down

0 comments on commit 6678bad

Please sign in to comment.