Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #394 from codecov/warn-utils
Browse files Browse the repository at this point in the history
Warn utils
  • Loading branch information
thomasrockhu authored Dec 16, 2020
2 parents 46e3fba + 8c999b3 commit 3d3df35
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SHA1SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2956da02f4d9dcbcab0ff1b9caf9a6864a16e60d codecov
a0a6a995c0344a91f842d706be0ce382198f9c3e codecov
2 changes: 1 addition & 1 deletion SHA256SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0156a6ac707a4bef39b60b64469c88f078f9983f61b5082ddb7986b0024fd5e4 codecov
6b3a7a4dc3ba8bdaa12b1341cddc310b780d5e9eb1ef51d240c8ada352a763fa codecov
2 changes: 1 addition & 1 deletion SHA512SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49443c7828e32cd727929f28bbbb84cce335615d3c7fbe10c5eeaee20018e0f5374c32dcf24f12ca82b8aff78b1f427baae9e8618cb3cfb087a2c909c8933a0f codecov
08c2e1854c0c45fcfcfb8923c5b2799d8cf252f0b75e590dbac1a70506a93688ee1b4dc4c96846575224c58b1e362d0ebb1bcebf163c38cb93bd65484ae9b3bc codecov
24 changes: 24 additions & 0 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ b="\033[0;36m"
g="\033[0;32m"
r="\033[0;31m"
e="\033[0;90m"
y="\033[0;33m"
x="\033[0m"

show_help() {
Expand Down Expand Up @@ -469,6 +470,29 @@ say "
"

# check for installed tools
# git/hg
if [ -x "$(command -v git)" ];
then
say " $(git --version) found"
else
say "$y==>$x git not installed, testing for mercurial"
if [ -x "$(command -v hg)" ];
then
say " $(hg --version) found"
else
say "$r==>$x git nor mercurial are installed. Uploader may fail or have unintended consequences"
fi
fi
# curl
if [ -x "$(command -v curl)" ];
then
say " $(curl --version) found"
else
say "$r==>$x curl not installed. Exiting."
exit ${exit_with};
fi

search_in="$proj_root"

#shellcheck disable=SC2154
Expand Down

0 comments on commit 3d3df35

Please sign in to comment.