Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed return value error #6

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

SauravDharwadkar
Copy link
Contributor

The reddit questions and issues state it not work on some maching give solution will work
https://stackoverflow.com/questions/15471264/how-to-check-if-is-not-equal-to-zero-in-unix-shell-scripting/15471312

@C0rn3j
Copy link

C0rn3j commented Jul 21, 2020

  which ${deps[i]} 2>&- >&-
  status=$?
  if [[ $status -ne 0 ]]; then 

You can polish this further by rewriting it into a more portable and cleaner one liner:

  if ! command -v ${deps[i]} 2>&- >&-; then 

@terroo terroo merged commit db6d3ca into terroo:master Jul 21, 2020
@terroo
Copy link
Owner

terroo commented Jul 21, 2020

Thanks for pull request .

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.

3 participants