For partialzip

This commit is contained in:
LukeeGD 2020-12-03 19:05:42 +08:00 committed by GitHub
parent a0d3b7faa6
commit e3be2d4447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ function Main {
Echo " Downgrader script by LukeZGD "
echo
partialzip="resources/tools/partialzip_$platform"
if [[ $OSTYPE == "linux-gnu" ]]; then
. /etc/os-release 2>/dev/null
platform="linux"
@ -80,7 +81,6 @@ function Main {
futurerestore2="resources/tools/futurerestore2_$platform"
tsschecker="resources/tools/tsschecker_$platform"
fi
partialzip="resources/tools/partialzip_$platform"
[[ ! -d resources ]] && Error "resources folder cannot be found. Replace resources folder and try again" "If resources folder is present try removing spaces from path/folder name"
[[ ! $platform ]] && Error "Platform unknown/not supported."