提交 a378467b 编写于 作者: wenliang999's avatar wenliang999

2022.01.18_15.00.41

上级 186a2caf
......@@ -11,9 +11,19 @@ function SCRIPT_RUN(){
# -------- -------- -------- -------- -------- -------- -------- -------- -------- --------
local LANCH_MINI_VERSION="1.0.0"
local LANCH_MINI_REPO_FILE="https://gitcode.net/codefast/standard/lanch_script"
local LANCH_MINI_REPO_FILE="https://gitcode.net/codefast/standard/lanch_script/-/raw/dev/master/kernal/${SCRIPT_NAME}"
[[ " $@ " =~ " --help " ]] && echo "${SCRIPT_NAME}, ver=${LANCH_MINI_VERSION} (${LANCH_MINI_REPO_FILE})" && return
if [[ " $@ " =~ " --releasesync " ]] ; then
DATE_CURR=$(date "+%Y.%m.%d_%H.%M.%S")
rm /tmp/LANCH_MINI_TEMP_${DATE_CURR} -rf;
mkdir -p /tmp/LANCH_MINI_TEMP_${DATE_CURR}
wget ${LANCH_MINI_REPO_FILE} -P /tmp/LANCH_MINI_TEMP_${DATE_CURR}
chmod +x /tmp/LANCH_MINI_TEMP_${DATE_CURR}/${LANCH_MINI_REPO_FILE##*/}
mv /tmp/LANCH_MINI_TEMP_${DATE_CURR}/${LANCH_MINI_REPO_FILE##*/} ${SCRIPT_PATH}/${SCRIPT_NAME}
rm /tmp/LANCH_MINI_TEMP_${DATE_CURR} -rf;
return
fi
......@@ -302,3 +312,4 @@ function SCRIPT_DEBUGING(){
[[ ! " $@ " =~ " debuging " ]] && SCRIPT_RUN $@
[[ " $@ " =~ " debuging " ]] && SCRIPT_DEBUGING $@
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册