build: only move folder if it exists when freeing space (#24740)
This commit is contained in:
parent
76e3ee6fe6
commit
bac232689d
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ step-get-more-space-on-mac: &step-get-more-space-on-mac
|
|||
if [ "`uname`" == "Darwin" ]; then
|
||||
sudo mkdir -p $TMPDIR/del-target
|
||||
tmpify() {
|
||||
sudo mv $1 $TMPDIR/del-target/$(echo $1|shasum -a 256|head -n1|cut -d " " -f1)
|
||||
if [ -d "$1" ]; then
|
||||
sudo mv $1 $TMPDIR/del-target/$(echo $1|shasum -a 256|head -n1|cut -d " " -f1)
|
||||
fi
|
||||
}
|
||||
tmpify /Library/Developer/CoreSimulator
|
||||
tmpify $(xcode-select -p)/Platforms/AppleTVOS.platform
|
||||
|
|
Loading…
Reference in a new issue