From af9cc15020d2aa6a5df6db3917192187e21cfa54 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 13:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Menus/Install.sh b/Menus/Install.sh index 31f0da7..6c58b0f 100644 --- a/Menus/Install.sh +++ b/Menus/Install.sh @@ -9,10 +9,10 @@ fi mkdir -p "$path" rm -rf "$path/linuxtoo" -wget https://g.lsy22.com/lsy/LinuxTool/archive/master.tar.gz -O "${path}/aa" &> /dev/null -tar -zxf "$path/aa" -C $path +wget https://g.lsy22.com/lsy/LinuxTool/archive/master.tar.gz -O "${path}/aa" &> /dev/null || echo "脚本下载失败" && exit +tar -zxf "$path/aa" -C $path &> /dev/null || echo "脚本解压" && exit rm "$path/aa" -chmod +x "$path/linuxtool/Run.sh" +chmod +x "$path/linuxtool/Run.sh" &> /dev/null || echo "脚本添加执行权限失败" && exit sed -i '/alias tool.*/d' "${HOME}/.bashrc" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.bashrc"