From a4ca437d3a0964fd2df25e1a57e0706028c11025 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Sat, 9 Mar 2024 03:56:42 +0530 Subject: [PATCH] =?UTF-8?q?@eshanized=20pushed=20another=20commit=20via=20?= =?UTF-8?q?script=20=F0=9F=94=A5=F0=9F=94=A5=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/snigdhaos-updater/core-script | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/snigdhaos-updater/core-script b/common/snigdhaos-updater/core-script index 2f39c84d..23cc4a2f 100644 --- a/common/snigdhaos-updater/core-script +++ b/common/snigdhaos-updater/core-script @@ -106,4 +106,14 @@ do_update(){ else $PACMAN "${pacman_args[@]}" fi -} \ No newline at end of file +} + +# Do you need to see changelog? Let's Program it....... + +show_changelog(){ + if [ -e "/var/log/snigdhaos/tmp/update_notices" ]; then + echo -e "\033[0;96mUpdate:\n\033[0;96m$(gawk -F '\t' '{print $2}' /var/lib/snigdhaos/tmp/update_notices)\n\033[0m" + rm /var/lib/snigdhaos/tmp/update_notices + fi +} +