修复: 解决管道执行脚本时无法读取用户输入的问题
- 添加 exec < /dev/tty 重定向标准输入到终端 - 修复 curl|bash 执行时 read 命令失效的问题 - 版本号更新为 v1.0.1
This commit is contained in:
@@ -3,11 +3,15 @@
|
||||
################################################################################
|
||||
# 玩玩云 (WanWanYun) - 一键部署脚本
|
||||
# 项目地址: https://gitee.com/yu-yon/vue-driven-cloud-storage
|
||||
# 版本: v1.0.0
|
||||
# 版本: v1.0.1
|
||||
################################################################################
|
||||
|
||||
set -e
|
||||
|
||||
# 重定向标准输入到终端,解决管道执行时无法读取用户输入的问题
|
||||
exec < /dev/tty
|
||||
|
||||
|
||||
# 颜色定义
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
|
||||
Reference in New Issue
Block a user