@eshanized pushed another commit via script 🔥🔥🔥

This commit is contained in:
2024-03-11 14:28:52 +05:30
parent 827da89aae
commit af2381eba1

View File

@@ -87,13 +87,20 @@ do_update(){
fi fi
AUTOPACMAN_LOG="$(mktemp)" 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 [ -n "$CUSTOM_PACMAN_CONFIG" ]; then
rm "$CUSTOM_PACMAN_CONFIG"
fi
if [ "$EXIT" == "134" ] || [ "$EXIT" == "0" ]; then if [ "$EXIT" == "134" ] || [ "$EXIT" == "0" ]; then
SUCCESS=true SUCCESS=true
fi fi
if [ "$SUCCESS" != "true" ] && [ -z "$ALREADY_RETRIED" ]; then if [ "$SUCCESS" != "true" ] && [ -z "$ALREADY_RETRIED" ]; then
parse_pacman_log parse_pacman_log
fi fi
rm "$AUTOPACMAN_LOG"
if [ "$RETRY" != "false" ]; then if [ "$RETRY" != "false" ]; then
echo -e "\n\033[0;96m=>\033[0;96m $RETRY \n\033[0m" echo -e "\n\033[0;96m=>\033[0;96m $RETRY \n\033[0m"
ALREADY_RETRIED=true do_update ALREADY_RETRIED=true do_update
@@ -123,3 +130,7 @@ if [ -f /etc/snigdhaos/snigdhaos-updater/config ]; then
source /etc/snigdhaos/snigdhaos-updater/config source /etc/snigdhaos/snigdhaos-updater/config
fi fi
PARAMETERS=("$@")
PARSED_OPTIONS=$(getopt --options="a" --longoptions="aur,skip-mirrorlist,noconfirm" --name "$0" -- "${PARAMETERS[@]}")