apptask: only delete image if it is different

This commit is contained in:
Girish Ramakrishnan
2024-07-08 12:54:20 +02:00
parent 30633e7820
commit dd9e6e63ad
+1 -1
View File
@@ -313,7 +313,7 @@ async function install(app, args, progressCallback) {
await deleteAppDir(app, { removeDirectory: false }); // do not remove any symlinked appdata dir
}
if (oldManifest && oldManifest.dockerImage === app.manifest.dockerImage) {
if (oldManifest && oldManifest.dockerImage !== app.manifest.dockerImage) {
await docker.deleteImage(oldManifest);
}