File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -89,23 +89,23 @@ if [[ -e ${ZSHRC} ]]; then
89
89
fi
90
90
91
91
# Download zimfw script
92
- local -r zscript =${ZIM_HOME} /zimfw.zsh
92
+ local -r ztarget =${ZIM_HOME} /zimfw.zsh
93
93
if (
94
94
command mkdir -p ${ZIM_HOME} || return 1
95
95
local -r zurl=https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
96
- if (( ${+commands[wget ]} )) ; then
97
- command wget -nv -O ${zscript } ${zurl} || return 1
98
- elif (( ${+commands[curl ]} )) ; then
99
- command curl -fsSL -o ${zscript } ${zurl} || return 1
96
+ if (( ${+commands[curl ]} )) ; then
97
+ command curl -fsSL -o ${ztarget } ${zurl} || return 1
98
+ elif (( ${+commands[wget ]} )) ; then
99
+ command wget -nv -O ${ztarget } ${zurl} || return 1
100
100
else
101
- print -u2 -P ' %F{red}x Either %Bwget %b or %Bcurl %b are required to download the Zim script.%f'
101
+ print -u2 -P ' %F{red}x Either %Bcurl %b or %Bwget %b are required to download the Zim script.%f'
102
102
return 1
103
103
fi
104
104
); then
105
- print -PR " %F{green})%f Downloaded the Zim script to %B${zscript } %b"
105
+ print -PR " %F{green})%f Downloaded the Zim script to %B${ztarget } %b"
106
106
else
107
107
command rm -rf ${ZIM_HOME}
108
- print -u2 -PR " %F{red}x Could not download the Zim script to %B${zscript } %b%f"
108
+ print -u2 -PR " %F{red}x Could not download the Zim script to %B${ztarget } %b%f"
109
109
return 1
110
110
fi
111
111
Original file line number Diff line number Diff line change 1
1
# Download zimfw script
2
- local -r zscript =${ZIM_HOME}/zimfw.zsh
2
+ local -r ztarget =${ZIM_HOME}/zimfw.zsh
3
3
if (
4
4
command mkdir -p ${ZIM_HOME} || return 1
5
5
local -r zurl=https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
6
- if (( ${+commands[wget ]} )); then
7
- command wget -nv -O ${zscript } ${zurl} || return 1
8
- elif (( ${+commands[curl ]} )); then
9
- command curl -fsSL -o ${zscript } ${zurl} || return 1
6
+ if (( ${+commands[curl ]} )); then
7
+ command curl -fsSL -o ${ztarget } ${zurl} || return 1
8
+ elif (( ${+commands[wget ]} )); then
9
+ command wget -nv -O ${ztarget } ${zurl} || return 1
10
10
else
11
- print -u2 -P '%F{red}<%= error %> Either %Bwget %b or %Bcurl %b are required to download the Zim script.%f'
11
+ print -u2 -P '%F{red}<%= error %> Either %Bcurl %b or %Bwget %b are required to download the Zim script.%f'
12
12
return 1
13
13
fi
14
14
); then
15
- print -PR "<%= okay %> Downloaded the Zim script to %B${zscript }%b"
15
+ print -PR "<%= okay %> Downloaded the Zim script to %B${ztarget }%b"
16
16
else
17
17
command rm -rf ${ZIM_HOME}
18
- print -u2 -PR "%F{red}<%= error %> Could not download the Zim script to %B${zscript }%b%f"
18
+ print -u2 -PR "%F{red}<%= error %> Could not download the Zim script to %B${ztarget }%b%f"
19
19
return 1
20
20
fi
You can’t perform that action at this time.
0 commit comments