From af2381eba14092ec78379789d9b376bdedbddf3c Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Mon, 11 Mar 2024 14:28:52 +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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/common/snigdhaos-updater/core-script b/common/snigdhaos-updater/core-script index 25640fa2..47fc7de0 100644 --- a/common/snigdhaos-updater/core-script +++ b/common/snigdhaos-updater/core-script @@ -87,13 +87,20 @@ do_update(){ 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=$?; } - if [ -n "$CUSTOM_PACMAN_CONFIG" ]; then rm "$CUSTOM_PACMAN_CONFIG";fi + if [ -n "$CUSTOM_PACMAN_CONFIG" ]; then + rm "$CUSTOM_PACMAN_CONFIG" + fi + if [ "$EXIT" == "134" ] || [ "$EXIT" == "0" ]; then SUCCESS=true fi + if [ "$SUCCESS" != "true" ] && [ -z "$ALREADY_RETRIED" ]; then parse_pacman_log fi + + rm "$AUTOPACMAN_LOG" + if [ "$RETRY" != "false" ]; then echo -e "\n\033[0;96m=>\033[0;96m $RETRY \n\033[0m" ALREADY_RETRIED=true do_update @@ -123,3 +130,7 @@ if [ -f /etc/snigdhaos/snigdhaos-updater/config ]; then source /etc/snigdhaos/snigdhaos-updater/config fi +PARAMETERS=("$@") +PARSED_OPTIONS=$(getopt --options="a" --longoptions="aur,skip-mirrorlist,noconfirm" --name "$0" -- "${PARAMETERS[@]}") + +