-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
check
Outdated
if [[ "${KERNEL_NAME}" = "Darwin" ]]; then | ||
err "${OS_NAME}: 'brew install coreutils'" | ||
elif [[ "${KERNEL_NAME}" = "Linux" ]]; then | ||
err "Ubuntu or Debian GNU/${OS_NAME}: 'apt-get install coreutils'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo apt-get ...
?
and RHEL/CentOS: 'sudo yum install ...'
?
check
Outdated
elif [[ "${KERNEL_NAME}" = "Linux" ]]; then | ||
err "Ubuntu or Debian GNU/${OS_NAME}: 'apt-get install coreutils'" | ||
fi | ||
return 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 2
here? maybe it's worth to document the meaning of every returned value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's woth it, because error reporting handler will show function name and even the line number of error: easy to understand "what's happening".
This looks awesome! One thing -- it looks like the current code doesn't check
|
Fixed all commented things. |
No description provided.