From c6f7913c280bf6a8c20f787f50bcae3aa155deb7 Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Fri, 8 Oct 2021 14:10:59 -0700 Subject: [PATCH] remove extra whitespace, check $latest --- .github/workflows/sync-linguist.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-linguist.yml b/.github/workflows/sync-linguist.yml index a30acd7..a63d701 100644 --- a/.github/workflows/sync-linguist.yml +++ b/.github/workflows/sync-linguist.yml @@ -29,14 +29,13 @@ jobs: IFS=$'\n\t' cd .linguist latest=$(git tag --list | \ - grep -v "-" | \ + grep -v "-" | \ sort --version-sort --reverse | \ head -1) - if [[ $? -ne 0 ]]; then - echo "Could not find latest tagged Linguist version" + if [[ -n $latest ]]; then + echo "could not determine latest Linguist version" exit 1 fi - echo "::set-output name=linguist_version::$latest" git checkout $latest cd ..