这样的报错直接在判断里面加个-n
if [[ -n $_comp_path(#qNmh-20) ]]; then
unknown file attribute
这是zsh 数组赋值操作错误
改成下面
#修改前
typeset -A _download_helpers=(
aria2c 'aria2c --continue --remote-time --max-tries=0'
curl 'curl --continue-at - --location --progress-bar --remote-name --remote-time'
wget 'wget --continue --progress=bar --timestamping'
)
#修改后
declare _download_helpers
_download_helpers=(
aria2c 'aria2c --continue --remote-time --max-tries=0'
curl 'curl --continue-at - --location --progress-bar --remote-name --remote-time'
wget 'wget --continue --progress=bar --timestamping'
)
网友评论