#!/bin/sh

# This script is to TidyUp APT through Terminal ('MobileTerminal' is the packages name on Cydia) if you would like a verbose version of whats going on inside of APT.
# Dont use if you dont like something you see below or meantioned in the description of the package!
# V. 1.1
# YOU HAVE BEEN WARNED!

if [ "$(whoami)" != "root" ] #Determines if you are root user or not
then
    echo "Please run this as root!" #If you are not root user, you will see this message pop up
    exit 1
fi
apt-get update # Retrieves possible updates from Cydia 'update' section
echo
apt-get upgrade -y # Upgrades any posible updates in the 'update' section, with the 'Y' (yes) option set so you dont have to input y to continue...
echo
apt-get install -y #Installs upgrades with the 'Y' (yes) option set so you dont have to input y to continue...
echo
apt-get autoremove -y #Removes packages from Cydia that arent used anymore (like if you uninstalled Winterboard, there should be some dependencies left over, this removes the unused dependincies) with the option of 'Y' option set so you dont have to input y to continue...
echo
echo
echo "Done!"
echo
echo
