From 951d9649a51d2e64461c54b05ee2e0c8373a4d7e Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Sat, 14 Aug 2021 03:02:43 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=94=EF=B8=8F1.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Scripts/sh/1.sh diff --git a/Scripts/sh/1.sh b/Scripts/sh/1.sh new file mode 100644 index 0000000..41a4234 --- /dev/null +++ b/Scripts/sh/1.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +log() { + echo -e "\e[32m\n$1 \e[0m\n" +} + +inp() { + echo -e "\e[33m\n$1 \e[0m\n" +} + +opt(){ + echo -n -e "\e[36m输入您的选择->\e[0m" +} + +warn() { + echo -e "\e[31m$1 \e[0m\n" + } +} + +warn "大道至简" +inp "选择你想部署的 docker 项目:\n1) qinglong 2) V4 3) elecV2P 4) HHL 5) JS_TOOL 6) helloword(sakura)" +read option +case $option in + 1) project="ql" + ;; + 2) project="v4" + ;; + 3) project="v2p" + ;; + 4) project="hhl" + ;; + *) echo -e "\e[31m还没写好或不存在\e[0m\n" +esac + +wget -q https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/sh/${project}.sh -${project}.sh +bash ${project}.sh \ No newline at end of file