Simple update script for antiX linux

Simple low resource script which works also in Debian and Ubuntu based systems if package yad is installed.

The script:

yad --text="Would you like to check and install updates?" --title="SIMPLE UPDATER"
if [ $? = 0 ];
x-terminal-emulator -e /bin/bash -c "sudo apt update && sudo apt upgrade && yad --center --borders=5 --width=400 --text-align=center --button=gtk-ok:1 --title='Update Complete' --buttons-layout=center"
else exit 0