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 +} +