>>176047
Ололо,
#! /bin/bash
if [[ $1 = "?" || $1 = "-?" || $1 = "-h" || $1 = "--help" || $1 = "help" ]]
then
echo "This script literally just runs 'apt update && apt upgrade'. No arguments expected. Surprise, you need to be root to perform these actions!"
exit 0
elif [[ -n $1 ]]
then
echo "Invalid usage. Run 'aptgrade --help' for help."
exit 1
elif [[ $UID != 0 ]]
then
echo "Are you root? Run 'aptgrade --help'"
exit 1
else
apt update && apt upgrade
fi