Update microsoftvisualstudiocode.sh#1964
Update microsoftvisualstudiocode.sh#1964bartreardon merged 1 commit intoInstallomator:mainfrom kernsb:microsoftvisualstudiocode-update
Conversation
Fixed: - appNewVersion was not getting set because the curl command was not being redirected properly without a User Agent header being supplied. - Download was failing. Moved the new version check to happen first, so that we could then use that version to construct the needed download URL.
|
Test run output: sudo Installomator/utils/assemble.sh microsoftvisualstudiocode DEBUG=0 INSTALL=force
2024-10-17 13:29:35 : REQ : microsoftvisualstudiocode : no more blocking processes, continue with update 2024-10-17 13:29:42 : INFO : microsoftvisualstudiocode : Team ID matching: UBF8T346G9 (expected: UBF8T346G9 ) 2024-10-17 13:29:42 : INFO : microsoftvisualstudiocode : Copy /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.EEf6Wfdh0C/Visual Studio Code.app to /Applications 2024-10-17 13:29:44 : WARN : microsoftvisualstudiocode : Changing owner to bkerns |
|
I'm sure that is a possibility and would be worth look into in the future. In this case, I was proposing a fix that was as similar as possible to what was already being done in the original. |
|
🤖 Validation robot 🤖 |
|
Thank you! |

Fixed:
appNewVersion was not getting set because the curl command was not being redirected properly without a User Agent header being supplied.
Download was failing. Moved the new version check to happen first, so that we could then use that version to construct the needed download URL.