Skip to content

Commit

Permalink
Hard coded 7-zip command line switch for decompression.
Browse files Browse the repository at this point in the history
  • Loading branch information
alekdavisintel committed Jun 25, 2020
1 parent c1b5aad commit 480044d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions PlexBackup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -499,7 +499,7 @@ $ArchiverOptionsCompress =
# 7-zip command-line option for decompression.
$ArchiverOptionsExpand =
@(
"aoa"
$null
)

# DO NOT CHANGE THE FOLLOWING SETTINGS:
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions PlexBackup.ps1.SAMPLE.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@
"value": null
},
"ArchiverOptionsExpand": {
"_meta": {
"default": ["aoa"]
},
"value": null
}
}

0 comments on commit 480044d

Please sign in to comment.