File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ APEX_CLI_FILENAME=apex
18
18
19
19
APEX_CLI_FILE=" ${APEX_INSTALL_DIR} /${APEX_CLI_FILENAME} "
20
20
21
+ APEX_EXISTS=false
22
+
21
23
getSystemInfo () {
22
24
ARCH=$( uname -m)
23
25
case $ARCH in
@@ -70,11 +72,12 @@ checkHttpRequestCLI() {
70
72
fi
71
73
}
72
74
73
- checkExistingapex () {
75
+ checkExistingApex () {
74
76
if [ -f " $APEX_CLI_FILE " ]; then
75
77
echo -e " \nApex CLI is detected:"
76
78
$APEX_CLI_FILE version
77
79
echo -e " Reinstalling Apex CLI - ${APEX_CLI_FILE} ...\n"
80
+ APEX_EXISTS=true
78
81
else
79
82
echo -e " Installing Apex CLI...\n"
80
83
fi
@@ -127,6 +130,10 @@ installFile() {
127
130
fi
128
131
129
132
chmod o+x $tmp_root_apex_cli
133
+ # Remove existing file to prevent signature caching.
134
+ if [ " $APEX_EXISTS " = true ]; then
135
+ runAsRoot rm " $APEX_INSTALL_DIR /$APEX_CLI_FILENAME "
136
+ fi
130
137
runAsRoot cp " $tmp_root_apex_cli " " $APEX_INSTALL_DIR "
131
138
132
139
if [ -f " $APEX_CLI_FILE " ]; then
@@ -166,7 +173,7 @@ trap "fail_trap" EXIT
166
173
167
174
getSystemInfo
168
175
verifySupported
169
- checkExistingapex
176
+ checkExistingApex
170
177
checkHttpRequestCLI
171
178
172
179
You can’t perform that action at this time.
0 commit comments