Skip to content

Commit

Permalink
Merge pull request pytorch#155 from pjh5/mac_fix
Browse files Browse the repository at this point in the history
Small fix for mac uploads
  • Loading branch information
pjh5 authored Sep 26, 2018
2 parents 23f17de + daf6bf7 commit 63a7341
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cron/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ for build_dir in "$NIGHTLIES_FOLDER"/*; do
done

# Purge all dockers
docker ps -aq | xargs -I {} docker rm {} --force
yes | docker system prune
if [[ "$(uname)" != 'Darwin' ]]; then
docker ps -aq | xargs -I {} docker rm {} --force
yes | docker system prune
fi

exit "$any_removal_failed"

0 comments on commit 63a7341

Please sign in to comment.