CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
207 stars 38 forks source link

FetchURLfromJQ Renaming Files Incorrectly on Linux #556

Closed IceOfWraith closed 2 years ago

IceOfWraith commented 2 years ago

FetchURLfromJQ properly renames the downloaded file in Windows to the UpdateSourceTarget, but treats the new filename as a directory in Linux and fails. Example code below:

{"UpdateStageName": "Base Config Download 2","UpdateSourcePlatform": "All", "UpdateSource": "FetchURL", "UpdateSourceData": "https://github.com/CubeCoders/AMPTemplates/raw/main/ts3servertemplate.ini","UpdateSourceTarget":"teamspeak3-server_win64/ts3server.ini"}

Greelan commented 2 years ago

I have observed the same behaviour with FetchURL on Linux

PhonicUK commented 2 years ago

Functioning as intended - it's not meant to change the filename, it just changes what directory it downloads into.