fix: package are broken again

You cannot refer to a variable in the same statement as it is declared.
This commit is contained in:
Christian Höltje 2021-11-08 10:32:17 -05:00 committed by GitHub
parent eedc6871e3
commit 24f10f6367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
local user=$1 pkg=$2 plugin=$2 id_as=$3 dir=$4 profile=$5 \
local_path=${ZINIT[PLUGINS_DIR]}/${3//\//---} pkgjson \
tmpfile=${$(mktemp):-${TMPDIR:-/tmp}/zsh.xYzAbc123} \
URL=https://raw.githubusercontent.com/zdharma-continuum/zinit-package-${pkg}/HEAD/package.json
URL=https://raw.githubusercontent.com/zdharma-continuum/zinit-package-$2/HEAD/package.json
local pro_sep="{rst}, {profile}" epro_sep="{error}, {profile}" \
tool_sep="{rst}, {cmd}" \