Stop logspam (#1)

This patch removes all the unnecessary outputs from console
This commit is contained in:
Shéikh Adnan 2021-01-05 18:53:44 +05:30 committed by GitHub
parent 3baef5a321
commit 52e98b97c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ printf "Disk Space Before Cleanup...\n"
df -hlT -t ext4
printf "Clearing Docker Image Caches...\n"
docker rmi -f `docker images -q`
docker rmi -f `docker images -q` > /dev/null
printf "Uninstalling Unnecessary Applications...\n"
sudo -E apt-get -qq -y remove --purge \
@ -146,21 +146,21 @@ sudo -E apt-get -qq -y remove --purge \
ubuntu-mono \
vim \
vim-runtime \
zulu*
zulu* > /dev/null
printf "Removing Homebrew...\n"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" > /dev/null
sudo npm list -g --depth=0. | awk -F ' ' '{print $2}' | awk -F '@' '{print $1}' | sudo xargs npm remove -g 2>/dev/null
sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n 2>/dev/null
pip freeze --local | grep -v -i pipx | xargs sudo pip uninstall -y
sudo npm list -g --depth=0. | awk -F ' ' '{print $2}' | awk -F '@' '{print $1}' | sudo xargs npm remove -g > /dev/null
sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n > /dev/null
pip freeze --local | grep -v -i pipx | xargs sudo pip uninstall -y > /dev/null
sudo rm -rf -- \
/usr/share/dotnet \
/etc/mysql \
/etc/php \
/etc/apt/sources.list.d \
2>/dev/null
> /dev/null
sudo rm -rf -- \
/opt/hostedtoolcache/* \
/usr/local/julia* \
@ -173,10 +173,10 @@ sudo rm -rf -- \
/usr/share/miniconda \
/usr/local/share/phantomjs* /usr/local/share/chrome_driver /usr/local/share/gecko_driver \
/home/linuxbrew \
2>/dev/null
> /dev/null
printf "Clearing Dangling Remains...\n"
sudo -E apt-get -qq -y clean && sudo -E apt-get -qq -y autoremove
sudo -E apt-get -qq -y clean && sudo -E apt-get -qq -y autoremove > /dev/null
printf "Disk Space After Cleanup...\n"
df -hlT -t ext4