summaryrefslogtreecommitdiffhomepage
path: root/ci/ios/create-vm/scripts/cleanup.sh
blob: 159d2e8e39e02b054f395b10d38737d0d5596a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -euo pipefail

# shellcheck source=/dev/null
source ~/.bash_profile


# Uninstall rust
# shellcheck source=/dev/null
if [[ -f "${HOME}/.cargo/env" ]]
then
    source "${HOME}/.cargo/env"
    yes | rustup self uninstall
fi

# Uninstall brew (This should also delete all dependencies)
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# Clean up folders that were not automatically removed
sudo rm -rf /opt/homebrew

# Remove the custom profiles
rm -f ~/.zprofile ~/.profile ~/.bash_profile