diff options
author | 2023-03-15 23:13:47 +0600 | |
---|---|---|
committer | 2023-03-15 23:28:10 +0600 | |
commit | 5083ae34d95fdafc0ca37d94f448e71d75792115 (patch) | |
tree | 99b5ade60c5aa2875f4e087dcb0d19048a031f90 /data/perform-system-update | |
parent | 2378aef1181a8213c8e0788d399070a650dcd1fc (diff) | |
download | shopno-os-apt-notifier-5083ae34d95fdafc0ca37d94f448e71d75792115.tar.gz shopno-os-apt-notifier-5083ae34d95fdafc0ca37d94f448e71d75792115.zip |
Release package shopno-os-apt-notifier 1.0.1
Diffstat (limited to 'data/perform-system-update')
-rwxr-xr-x | data/perform-system-update | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/perform-system-update b/data/perform-system-update new file mode 100755 index 0000000..bb7f252 --- /dev/null +++ b/data/perform-system-update @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ $1 == "check" ]]; then + sudo apt update + if apt list --upgradable 2> /dev/null | grep -v '^Listing' | grep -q .; then + exo-open --launch TerminalEmulator "$0" + fi +else + echo -e "$(tput setaf 3)Please wait while the system in upgrading...$(tput sgr0)" + + sudo apt autoremove -y + sudo apt upgrade -y + echo -e "$(tput setaf 2)Done! You can now close this window $(tput sgr0)" +fi +exit 0 |