From 68d376bacb9c677d400768cc70c0086d3b2c69b6 Mon Sep 17 00:00:00 2001 From: juewuy Date: Wed, 10 Dec 2025 15:37:21 +0800 Subject: [PATCH] =?UTF-8?q?~=E6=81=A2=E5=A4=8D=E5=AF=B9dash=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=AE=89=E8=A3=85=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index cb5d08f..439a374 100644 --- a/install.sh +++ b/install.sh @@ -1,14 +1,9 @@ #! /bin/bash # Copyright (C) Juewuy -[ -z "$url" ] && url="https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master" +[ -z "$url" ] && url="https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@dev" type bash &>/dev/null && shtype=bash || shtype=sh -echo='echo -e' -[ -n "$(echo -e | grep e)" ] && { - echo "\033[31m不支持dash环境安装!请先输入bash命令后再运行安装命令!\033[0m" - exit -} - +[ -n "$(echo -e | grep e)" ] && echo=echo || echo='echo -e' echo "***********************************************" echo "** 欢迎使用 **" echo "** ShellCrash **" @@ -209,8 +204,8 @@ install() { gettar echo ----------------------------------------------- echo ShellCrash 已经安装成功! - [ "$profile" = "~/.bashrc" ] && echo "请执行【. ~/.bashrc &> /dev/null】命令以加载环境变量!" - [ -n "$(ls -l /bin/sh | grep -oE 'zsh')" ] && echo "请执行【. ~/.zshrc &> /dev/null】命令以加载环境变量!" + [ "$profile" = "~/.bashrc" ] && echo "请执行【. ~/.bashrc > /dev/null】命令以加载环境变量!" + [ -n "$(ls -l /bin/sh | grep -oE 'zsh')" ] && echo "请执行【. ~/.zshrc > /dev/null】命令以加载环境变量!" echo ----------------------------------------------- $echo "\033[33m输入\033[30;47m crash \033[0;33m命令即可管理!!!\033[0m" echo -----------------------------------------------