remove extra whitespace, check $latest

This commit is contained in:
Luke Francl 2021-10-08 14:10:59 -07:00
parent 7def8c82ce
commit c6f7913c28

View File

@ -32,11 +32,10 @@ jobs:
grep -v "-" | \ grep -v "-" | \
sort --version-sort --reverse | \ sort --version-sort --reverse | \
head -1) head -1)
if [[ $? -ne 0 ]]; then if [[ -n $latest ]]; then
echo "Could not find latest tagged Linguist version" echo "could not determine latest Linguist version"
exit 1 exit 1
fi fi
echo "::set-output name=linguist_version::$latest" echo "::set-output name=linguist_version::$latest"
git checkout $latest git checkout $latest
cd .. cd ..