From f4c7b2841db44ab9fb4118e784db17d0d6ddd86a Mon Sep 17 00:00:00 2001 From: Christian Schmidbauer Date: Sun, 28 Jun 2020 11:43:30 +0200 Subject: [PATCH] Allow wildcards in INPUT_PACKAGES_DIR --- twine-upload.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/twine-upload.sh b/twine-upload.sh index d827134..f9df411 100755 --- a/twine-upload.sh +++ b/twine-upload.sh @@ -18,10 +18,8 @@ then copied your token properly if such an error occurs. fi -if [[ - ! -d ${INPUT_PACKAGES_DIR%%/}/ || - "`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0" - ]] +if ( ! ls -A ${INPUT_PACKAGES_DIR%%/}/*.tar.gz &> /dev/null && \ + ! ls -A ${INPUT_PACKAGES_DIR%%/}/*.whl &> /dev/null ) then echo \ ::warning file='# >>' PyPA publish to PyPI GHA'%3A' \