Skip to content

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

Open
alexzhangs wants to merge 1 commit into
acmesh-official:masterfrom
alexforks:master
Open

Update installation script to handle errors and exit with the appropriate status code#9
alexzhangs wants to merge 1 commit into
acmesh-official:masterfrom
alexforks:master

Conversation

@alexzhangs

@alexzhangs alexzhangs commented May 8, 2024

Copy link
Copy Markdown

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant