From 480044dc2ed42d54b0adf8a41a124691eee22652 Mon Sep 17 00:00:00 2001 From: "Davis, Alek" Date: Wed, 24 Jun 2020 23:43:59 -0700 Subject: [PATCH] Hard coded 7-zip command line switch for decompression. --- PlexBackup.ps1 | 8 ++++---- PlexBackup.ps1.SAMPLE.json | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/PlexBackup.ps1 b/PlexBackup.ps1 index ebc8964..c79f5a6 100644 --- a/PlexBackup.ps1 +++ b/PlexBackup.ps1 @@ -196,9 +196,9 @@ Reboots the computer after a successful backup operation (ignored on restore). Forces an immediate restart of the computer after a successfull backup operation (the 'Reboot' switch is ignored). .NOTES -Version : 1.7.1 +Version : 1.7.2 Author : Alek Davis -Created on : 2020-06-24 +Created on : 2020-06-25 License : MIT License LicenseLink: https://github.com/alekdavis/PlexBackup/blob/master/LICENSE Copyright : (c) 2020 Alek Davis @@ -499,7 +499,7 @@ $ArchiverOptionsCompress = # 7-zip command-line option for decompression. $ArchiverOptionsExpand = @( - "aoa" + $null ) # DO NOT CHANGE THE FOLLOWING SETTINGS: @@ -2148,7 +2148,7 @@ function DecompressPlexAppDataFolder { } } - & $archiverPath "x" "$tempZipFilePath" "-o$plexAppDataDirPath" @cmdArgs + & $archiverPath "x" "$tempZipFilePath" "-o$plexAppDataDirPath" "-aoa" @cmdArgs if ($LASTEXITCODE -gt 0) { throw ("7-zip returned: " + $LASTEXITCODE) diff --git a/PlexBackup.ps1.SAMPLE.json b/PlexBackup.ps1.SAMPLE.json index f8e9b25..294af6f 100644 --- a/PlexBackup.ps1.SAMPLE.json +++ b/PlexBackup.ps1.SAMPLE.json @@ -195,9 +195,6 @@ "value": null }, "ArchiverOptionsExpand": { - "_meta": { - "default": ["aoa"] - }, "value": null } }