Skip to content

Commit

Permalink
bake:update
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Mar 31, 2024
1 parent 7fabcb0 commit a7f2c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/bake.bash
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ bake._debug() {
}
# Usage: bake._log DEBUG "错误消息"
bake._log(){
local level;
level=$1
local level="$1"
echo -e "$level $(date "+%F %T") $(bake._pwd)\$ ${FUNCNAME[1]}() : $*" >&2
}

Expand Down Expand Up @@ -552,6 +551,7 @@ bake.parse() {
esac
done

# todo 这里是不是可以简化为只用循环:'declare -p 变量名',由declare完成变量定义的文本转换工作,不要自己弄了?
local resultStr
for optPath in "${!optVars[@]}"; do
local declareStr
Expand Down

0 comments on commit a7f2c37

Please sign in to comment.