modify fetch_params to handle accents and whitespaces in user folder
This commit is contained in:
@@ -1,28 +1,28 @@
|
|||||||
@echo off
|
@echo off
|
||||||
call :GET_CURRENT_DIR
|
call :GET_CURRENT_DIR
|
||||||
cd %THIS_DIR%
|
cd %THIS_DIR%
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams (
|
IF NOT EXIST "%APPDATA%"\ZcashParams (
|
||||||
MKDIR %APPDATA%\ZcashParams
|
MKDIR "%APPDATA%"\ZcashParams
|
||||||
)
|
)
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams\sprout-proving.key (
|
IF NOT EXIST "%APPDATA%"\ZcashParams\sprout-proving.key (
|
||||||
ECHO Downloading Zcash trusted setup sprout-proving.key, this may take a while ...
|
ECHO Downloading Zcash trusted setup sprout-proving.key, this may take a while ...
|
||||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-proving.key -O %APPDATA%\ZcashParams\sprout-proving.key
|
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-proving.key -O "%APPDATA%"\ZcashParams\sprout-proving.key
|
||||||
)
|
)
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams\sprout-verifying.key (
|
IF NOT EXIST "%APPDATA%"\ZcashParams\sprout-verifying.key (
|
||||||
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
||||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-verifying.key -O %APPDATA%\ZcashParams\sprout-verifying.key
|
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-verifying.key -O "%APPDATA%"\ZcashParams\sprout-verifying.key
|
||||||
)
|
)
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams\sapling-spend.params (
|
IF NOT EXIST "%APPDATA%"\ZcashParams\sapling-spend.params (
|
||||||
ECHO Downloading Zcash trusted setup sprout-proving.key, this may take a while ...
|
ECHO Downloading Zcash trusted setup sprout-proving.key, this may take a while ...
|
||||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sapling-spend.params -O %APPDATA%\ZcashParams\sapling-spend.params
|
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sapling-spend.params -O "%APPDATA%"\ZcashParams\sapling-spend.params
|
||||||
)
|
)
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams\sapling-output.params (
|
IF NOT EXIST "%APPDATA%"\ZcashParams\sapling-output.params (
|
||||||
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
||||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sapling-output.params -O %APPDATA%\ZcashParams\sapling-output.params
|
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sapling-output.params -O "%APPDATA%"\ZcashParams\sapling-output.params
|
||||||
)
|
)
|
||||||
IF NOT EXIST %APPDATA%\ZcashParams\sprout-groth16.params (
|
IF NOT EXIST "%APPDATA%"\ZcashParams\sprout-groth16.params (
|
||||||
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
||||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-groth16.params -O %APPDATA%\ZcashParams\sprout-groth16.params
|
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-groth16.params -O "%APPDATA%"\ZcashParams\sprout-groth16.params
|
||||||
)
|
)
|
||||||
goto :EOF
|
goto :EOF
|
||||||
:GET_CURRENT_DIR
|
:GET_CURRENT_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user