Simple update script for antiX linux

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

SIMPLE_UPDATER.zip

The script:

#!/bin/bash
yad --text="Would you like to check and install updates?" --title="SIMPLE UPDATER"
if [ $? = 0 ];
then
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
fi