修复软件安装正则问题
This commit is contained in:
parent
99a1ea54a1
commit
2043b3d997
@ -55,7 +55,7 @@ if [[ -z $pick ]];then
|
|||||||
pick="$i"
|
pick="$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
elif ! [[ $pick =~ [1-${#soft_dick[@]}] || $pick =~ ([1-${#soft_dick[@]}][\s]?)+ ]];then
|
elif ! [[ $pick -ge 1 && $pick -le ${#soft_dick[@]} || $pick =~ ([1-${#soft_dick[@]}][\s]?)+ ]];then
|
||||||
echo "输入错误"
|
echo "输入错误"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user