From a246dccd34fe0fa33f01ef29eaf316596a32af5a Mon Sep 17 00:00:00 2001 From: Asainte Bueno-Villanueva Date: Fri, 6 Feb 2026 04:30:37 -0500 Subject: [PATCH] bypass call check local repo for dispatch --- install.sh | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index 9aeebcb..878acf3 100644 --- a/install.sh +++ b/install.sh @@ -13,9 +13,16 @@ echo -e "${BLUE}🐉 Dynasty Revolution Systems Initializing...${NC}" echo -e "${GOLD}Current Era: ${NC}$CURRENT_DATE" echo -e "${PURPLE}-------------------------------------------------${NC}" -# --- News Dispatch (Hardened) --- +# --- News Dispatch (Flat-File Bypass) --- echo -e "${GOLD}📜 LATEST ARCHIVE DISPATCHES:${NC}" -curl -sL -A "Mozilla/5.0" "$REPO_URL/commits/branch/main" | grep -m 3 "commit-title" | sed -E 's/.*message">([^<]+).*/ Published: '$CURRENT_DATE' | \1/' || echo " (Dispatch currently shielded)" +NEWS_DATA=$(curl -sL -A "Mozilla/5.0" "$REPO_RAW/dispatches.txt") + +if [[ -z "$NEWS_DATA" || "$NEWS_DATA" == *"404"* ]]; then + echo -e " ${RED}The Archives are currently silent.${NC}" +else + # Output the text file content with Dynasty colors + echo "$NEWS_DATA" | sed "s/^/ $(echo -e ${BLUE})/;s/$/$(echo -e ${NC})/" +fi echo -e "${PURPLE}-------------------------------------------------${NC}" @@ -46,15 +53,4 @@ if [ -f "/usr/local/bin/dynr" ]; then exit 0 ;; 2) echo -e "${BLUE}Proceeding...${NC}" ;; 3) sudo rm -rf /opt/dynr /usr/local/bin/dynr; exit 0 ;; - *) exit 0 ;; - esac -fi - -# --- Dependency Gatekeeper --- -echo -e "${PURPLE}-------------------------------------------------${NC}" -echo -e "${GOLD}🛠️ SYSTEM PROVISIONING${NC}" - -DEPS=("curl" "procps") -MISSING_DEPS=() -for dep in "${DEPS[@]}"; do - if ! command -v "$dep" &> /dev/null; then MISSING_DEPS+=("$dep"); \ No newline at end of file + *) exit \ No newline at end of file