bypass call check local repo for dispatch
Some checks failed
Update Dispatches / refresh-news (push) Has been cancelled
Some checks failed
Update Dispatches / refresh-news (push) Has been cancelled
This commit is contained in:
24
install.sh
24
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");
|
||||
*) exit
|
||||
Reference in New Issue
Block a user