Skip to content

Commit

Permalink
scorecard install adaptation for evolving go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoggins committed Sep 11, 2022
1 parent aa1965b commit 3a3e60a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install/workers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ do

done

if [ -f "/usr/local/bin/go" ]; then
if [ -f "/usr/local/bin/go" ] || [ -f "/usr/bin/go" ] || [ -f "/snap/bin/go" ]; then
echo "found go!"
else
echo "Installing go!"
Expand All @@ -58,7 +58,8 @@ if [ -d "$HOME/scorecard" ]; then
echo " Updating Scorecard ... "
CURRENT_DIR=$PWD;
cd $HOME/scorecard;
git pull;
git pull;
go mod tidy;
go build;
echo "Scorecard build done."
cd $CURRENT_DIR
Expand Down

0 comments on commit 3a3e60a

Please sign in to comment.