Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为我的项目目标配置了一个运行脚本阶段。它在每个构建上运行。是否可以暂时禁用此脚本而不将其从目标中删除?
我不知道任何一种“禁用”状态。但是,它是一个 bash 脚本,因此您可以exit 0在希望禁用它的同时在顶部添加。
exit 0
或者,如果它是一个单行脚本,您可以#在开头添加一个以将语句注释掉。
#