You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: refactor initialization and option handling for install script
- Move all environment variable initialization and option parsing to later in the script, after function definitions
- Add automatic fetching of the latest GitHub release version if VERSION is not specified
- Add validation for semantic version format of VERSION
- Centralize and improve handling for the CURL_INSECURE environment option
- Move calls to detect_client_info and download_and_install to after all variable initializations and checks
- Remove duplicate logic by extracting CURL_INSECURE parsing out of the download_and_install function
Signed-off-by: appleboy <[email protected]>
0 commit comments