Update install.sh

This commit is contained in:
2026-02-06 03:50:09 -05:00
parent d5f47ce645
commit 7732f490bb

View File

@@ -49,4 +49,34 @@ if [ -f "/usr/local/bin/dynr" ]; then
# Exit/Quit Check
if [[ "$CMD_INPUT" == "exit" ]] || [[ "$CMD_INPUT" == "quit" ]]; then
echo -e "${GOLD}🐉 The Dynasty awaits your return. Farewell.${
echo -e "${GOLD}🐉 The Dynasty awaits your return. Farewell.${NC}"
exit 0
fi
[[ ! -z "$CMD_INPUT" ]] && dynr $CMD_INPUT
exit 0
;;
2) echo -e "${BLUE}Proceeding with Reinstallation...${NC}" ;;
3)
echo -e "${RED}🔥 Incinerating the Dynasty...${NC}"
sudo rm -rf /opt/dynr /usr/local/bin/dynr
exit 0 ;;
*) exit 0 ;;
esac
fi
# --- Standard Installation Logic ---
sudo mkdir -p /opt/dynr/modules
sudo chown -R $USER:$USER /opt/dynr
for dep in rclone fzf curl procps; do
if ! command -v $dep &> /dev/null; then
echo -e "${GOLD}Installing $dep...${NC}"
sudo apt-get update -qq && sudo apt-get install -y -qq $dep
fi
done
sudo curl -sSL "$REPO_RAW/core/dynr" -o /usr/local/bin/dynr
sudo chmod +x /usr/local/bin/dynr
echo -e "${BLUE}✨ Dynasty Core v2.3.4 installed.${NC}"