Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Simplify function of checking OS init system#2

Closed
imdjh wants to merge 14 commits into
hyperhq:masterfrom
imdjh:master
Closed

Simplify function of checking OS init system#2
imdjh wants to merge 14 commits into
hyperhq:masterfrom
imdjh:master

Conversation

@imdjh
Copy link
Copy Markdown
Contributor

@imdjh imdjh commented Oct 8, 2015

Renamed this function to check_initsystem for better explanation via its own name.
Remove useless logic.

imdjh pushed a commit to imdjh/hyper-installer that referenced this pull request Oct 8, 2015
I have notice that `show_message error` has always comes with an exit, so I merge the exit func into show_message.
You can use it with `show_message error ${ERR_TWO_ELEMENT_ARRAY[@]}`

I have noticed that the original implement on display_message always comesafter an error message. Since it's not the case user can easily solve themself, why not implement a fatal message and it would give the (almost) same result.
You can use it with `show_message fatal ${ERR_EXIT_CODE}`

Also fixed some typo and missleading message in this commit.
Install from remote -> Start fetching hyper package
Installing          -> Installing hyper and hyperd

Since __done__ is a reserve keyword in bash, I personally recommand remove it(as I did).
@imdjh
Copy link
Copy Markdown
Contributor Author

imdjh commented Oct 8, 2015

I have a new PR, this is pretty old and not useful.

@imdjh imdjh closed this Oct 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant