Skip to content

Commit ab19bb2

Browse files
authored
Merge pull request #121 from mattip/upload5
use +e to execute the upload script
2 parents c921217 + a567b3d commit ab19bb2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/upload_to_anaconda_staging.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Upload tar.gz and wheels to ananconda.org
33

44
upload_wheels() {
5-
set -x
5+
# use +e since the ls command will error: either zip files or tar.gz files exist
6+
set +e -x
67
if [[ "$(uname -s)" == CYGWIN* ]]; then
78
our_wd=$(cygpath "$START_DIR")
89
cd $our_wd
@@ -17,7 +18,7 @@ upload_wheels() {
1718
else
1819
echo "Uploading OpenBLAS $VERSION to anaconda.org staging:"
1920

20-
tarballs=$(ls -d builds/openblas*.zip libs/openblas*.tar.gz 2>/dev/null && true)
21+
tarballs=$(ls -d builds/openblas*.zip libs/openblas*.tar.gz 2>/dev/null)
2122
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
2223
--no-progress --force -u scientific-python-nightly-wheels \
2324
-t file -p "openblas-libs" -v "$VERSION" \

0 commit comments

Comments
 (0)