修复用户bug

This commit is contained in:
lsy 2024-09-24 18:08:50 +08:00
parent 8d0a88e02e
commit a4f8d8dfb0
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ echo "2.安装密钥"
echo "输入其他返回主页" echo "输入其他返回主页"
declare pick declare pick
echo "========key========" echo "========key========"
read -p "请输入要选择的命令" pick read -p "请输入要选择的命令" pick
case $pick in case $pick in
'1') '1')
@ -38,7 +38,7 @@ case $pick in
echo "选择错误" echo "选择错误"
exit exit
fi fi
type=${type_dick[$pick]} type=${print_arr[$pick]}
if [ ! -z ${type_dick[$type]} ]; then if [ ! -z ${type_dick[$type]} ]; then
echo "请选择密钥位大小" echo "请选择密钥位大小"

View File

@ -78,6 +78,10 @@ if [[ -e "${HOME}/.zshrc" ]];then
echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.zshrc" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.zshrc"
source "${HOME}/.zshrc" &> /dev/null source "${HOME}/.zshrc" &> /dev/null
fi fi
sed -i '/alias tool.*/d' "/etc/profile"
echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "/etc/profile"
alias tool="$path/linuxtool/Run.sh" alias tool="$path/linuxtool/Run.sh"
echo "工具箱已经安装成功" echo "工具箱已经安装成功"