修复用户bug
This commit is contained in:
parent
8d0a88e02e
commit
a4f8d8dfb0
@ -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 "请选择密钥位大小"
|
||||||
|
@ -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 "工具箱已经安装成功"
|
||||||
|
Loading…
Reference in New Issue
Block a user