From 827da89aae0bbfda28cf1a8f1c6a9ee85e5d0a77 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Mon, 11 Mar 2024 14:26:13 +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 | 4 ++-- common/snigdhaos-updater/snigdhaos-updater | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/snigdhaos-updater/core-script b/common/snigdhaos-updater/core-script index fe0dcb71..25640fa2 100644 --- a/common/snigdhaos-updater/core-script +++ b/common/snigdhaos-updater/core-script @@ -8,7 +8,7 @@ init_logging(){ fi echo -e "\n>-<->-< snigdhaos-updater at $(date +"%Y-%m-%d %R %Z(%:::z)")\n" >>/var/log/snigdhaos/snigdhaos-updater - exec &> >(stdbuf -i0 -o0 -e0 tee >(sed '')) #incshx002 + exec &> >(stdbuf -i0 -o0 -e0 tee >(sed '/\x1b\[[0-9][EF]/d;/\r[^\n]$/d;s,\x1B\[[0-9;]*[a-zA-Z],,g' >>/var/log/snigdhais/snigdhaos-updater)) } parse_pacman_log(){ @@ -86,7 +86,7 @@ do_update(){ AUTOPACMAN_CONFLICTSFILE="$(mktemp -u)" fi AUTOPACMAN_LOG="$(mktemp)" - LANG=C LANGUAGE=C LC_ALL=C AUTOPACMAN_LOG="$AUTOPACMAN_LOG" AUTOPACMAN_PACMAN_NOCONFIRM="$PACMAN_NOCONFIRM" AUTOPACMAN_CONFLICTSFILE="$AUTOPACMAN_CONFLICTSFILE" /usr/lib/snigdhaos/snigdhaos-updater/auto-pacman "$PACMAN" "${pacman_args[@]}" || { EXIT=$; } + LANG=C LANGUAGE=C LC_ALL=C AUTOPACMAN_LOG="$AUTOPACMAN_LOG" AUTOPACMAN_PACMAN_NOCONFIRM="$PACMAN_NOCONFIRM" AUTOPACMAN_CONFLICTSFILE="$AUTOPACMAN_CONFLICTSFILE" /usr/lib/snigdhaos/snigdhaos-updater/auto-pacman "$PACMAN" "${pacman_args[@]}" || { EXIT=$?; } if [ -n "$CUSTOM_PACMAN_CONFIG" ]; then rm "$CUSTOM_PACMAN_CONFIG";fi if [ "$EXIT" == "134" ] || [ "$EXIT" == "0" ]; then SUCCESS=true diff --git a/common/snigdhaos-updater/snigdhaos-updater b/common/snigdhaos-updater/snigdhaos-updater index 8dc71e58..247e5bdf 100644 --- a/common/snigdhaos-updater/snigdhaos-updater +++ b/common/snigdhaos-updater/snigdhaos-updater @@ -11,6 +11,10 @@ def_pacman_config(){ echo "$TEMP_CONF" } +# Credit : Garuda Linux +# URL : https://garudalinux.org/ +# Script Source : https://gitlab.com/garuda-linux/pkgbuilds/-/blob/main/garuda-update/garuda-update + self_update(){ local EXTRA_PARAMS=() if [ "$DATABASE_UPDATED" == "force" ]; then