1 Star 0 Fork 0

PJ568/PJ568-sh

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
nriagihnt_update.sh 1.36 KB
Copy Edit Raw Blame History
PJ568 authored 2024-08-31 13:39 . 【更新】处理
#!/bin/bash
sleep 20
# 目录
ROOT_DIR="/home/nriagihnt/.local/PJ568"
SRC_DIR="${ROOT_DIR}/scripts"
APP_DIR="${ROOT_DIR}/applications"
TMP_DIR="${ROOT_DIR}/tmp"
if [ ! -d "$TMP_DIR" ]; then
mkdir -p "$TMP_DIR"
fi
# nriagihnt_update.sh
wget -P "$TMP_DIR" https://gitee.com/PJ-568/PJ568-sh/raw/main/nriagihnt_update.sh || { echo "下载更新脚本失败,退出。"; exit 1; }
chmod +x "$TMP_DIR/nriagihnt_update.sh"
if [ ! -d "$SRC_DIR" ]; then
mkdir -p "$SRC_DIR"
fi
mv -f "$TMP_DIR/nriagihnt_update.sh" "$SRC_DIR/nriagihnt_update.sh"
# lb-chat 客户端
wget -P "$TMP_DIR" https://gitee.com/PJ-568/lb-chat/raw/main/client/client.sh || { echo "下载 lb-chat 客户端失败,退出。"; exit 1; }
chmod +x "$TMP_DIR/client.sh"
if [ ! -d "$APP_DIR/html-chat" ]; then
mkdir -p "$APP_DIR/html-chat"
fi
mv -f "$TMP_DIR/client.sh" "$APP_DIR/html-chat/html-chat-gtk"
# Search.html 文件
wget -P "$TMP_DIR" https://gitee.com/PJ-568/Search.html/raw/main/index.html || { echo "下载 Search.html 文件失败,退出。"; exit 1; }
wget -P "$TMP_DIR" https://gitee.com/PJ-568/Search.html/raw/main/favicon.svg || { echo "下载 Search.html 文件失败,退出。"; exit 1; }
if [ ! -d "$APP_DIR/Search.html" ]; then
mkdir -p "$APP_DIR/Search.html"
fi
mv -f "$TMP_DIR/index.html" "$APP_DIR/Search.html/index.html"
mv -f "$TMP_DIR/favicon.svg" "$APP_DIR/Search.html/favicon.svg"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/PJ-568/PJ568-sh.git
git@gitee.com:PJ-568/PJ568-sh.git
PJ-568
PJ568-sh
PJ568-sh
main

Search