apptask: only delete image if it is different
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user