forked from DevOps/deploy.stack
refactor(shell): 使用参数替换硬编码路径
修改run.sh脚本,将硬编码的路径替换为参数传递,提高脚本的灵活性和可重用性
This commit is contained in:
@@ -11,6 +11,6 @@ updatesh() {
|
||||
}
|
||||
|
||||
# 调用函数
|
||||
updatesh "/data/deploy.stack"
|
||||
updatesh $1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user