You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Debug"{ User Version: $userVersion, Current Version: $blktVersion }"
108
-
if ($userVersion-eq$blktVersion) {
109
-
Write-Warning"Installed Buildkit version is the same as the requested version. Please uninstall the existing version using 'Uninstall-Containerd' or use -Force to reinstall."
110
-
if (!$Force) {
111
-
return
112
-
}
113
-
}
92
+
if (!$Force) {
93
+
Write-Warning"Installation cancelled. $errMsg Please uninstall the existing version using 'Uninstall-Buildkit' or use -Force to reinstall."
94
+
return
114
95
}
115
96
116
97
# Uninstall if tool exists at specified location. Requires user consent
Write-Debug"{ User Version: $userVersion, Current Version: $ctrexeVersion }"
97
-
98
-
if ($userVersion-eq$ctrexeVersion) {
99
-
Write-Warning"Installed Containerd version is the same as the requested version. Please uninstall the existing version using 'Uninstall-Containerd' or use -Force to reinstall."
100
-
if (!$Force) {
101
-
return
102
-
}
103
-
}
81
+
if (!$Force) {
82
+
Write-Warning"Installation cancelled. $errMsg Please uninstall the existing version using 'Uninstall-Containerd' or use -Force to reinstall."
83
+
return
104
84
}
105
85
106
86
# Uninstall if tool exists at specified location. Requires user consent
Write-Debug"{ User Version: $userVersion, Current Version: $nerdctlVersion }"
144
-
145
-
if ($userVersion-eq$nerdctlVersion) {
146
-
Write-Warning"Installed nerdctl version is the same as the requested version. Please uninstall the existing version using 'Uninstall-Containerd' or use -Force to reinstall."
147
-
if (!$Force) {
148
-
return
149
-
}
150
-
}
129
+
if (!$Force) {
130
+
Write-Warning"Installation cancelled. $errMsg Please uninstall the existing version using 'Uninstall-Nerdctl' or use -Force to reinstall."
131
+
return
151
132
}
152
133
153
134
# Uninstall if tool exists at specified location. Requires user consent
0 commit comments