kou commented on code in PR #47322:
URL: https://github.com/apache/arrow/pull/47322#discussion_r2272764069


##########
ci/scripts/python_sdist_test.sh:
##########
@@ -53,13 +53,17 @@ fi
 if [ -n "${PYARROW_VERSION:-}" ]; then
   sdist="${arrow_dir}/python/dist/pyarrow-${PYARROW_VERSION}.tar.gz"
 else
-  sdist=$(ls ${arrow_dir}/python/dist/pyarrow-*.tar.gz | sort -r | head -n1)
+  sdist=$( find "${arrow_dir}/python/dist/" -maxdepth 1 -name 
'pyarrow-*.tar.gz' -print | sort -r | head -n1 )

Review Comment:
   Can we use `echo`?
   
   ```suggestion
     sdist=$(echo ${arrow_dir}/python/dist/pyarrow-*.tar.gz | sort -r | head 
-n1)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to