get.acme.sh icon indicating copy to clipboard operation
get.acme.sh copied to clipboard

Update installation script to handle errors and exit with the appropriate status code

Open alexzhangs opened this issue 1 year ago • 0 comments

@Neilpang @richard-vd After the change, the installer is able to exit with the curl's exit code.

$ sh index.html 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 3 ms: Couldn't connect to server
$ echo $?
7

alexzhangs avatar May 08 '24 16:05 alexzhangs