Skip to content

Commit 63a7341

Browse files
authored
Merge pull request pytorch#155 from pjh5/mac_fix
Small fix for mac uploads
2 parents 23f17de + daf6bf7 commit 63a7341

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cron/clean.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ for build_dir in "$NIGHTLIES_FOLDER"/*; do
112112
done
113113

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

118120
exit "$any_removal_failed"

0 commit comments

Comments
 (0)