From 9143ca9c6077a23a7842c725b955cb1ca58f1209 Mon Sep 17 00:00:00 2001 From: Daniel Mundra Date: Sun, 1 Sep 2024 16:26:27 -0700 Subject: [PATCH] Update check-material-insiders-version.sh --- .config/mkdocs/check-material-insiders-version.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/mkdocs/check-material-insiders-version.sh b/.config/mkdocs/check-material-insiders-version.sh index 9390e98093..598e3316a9 100755 --- a/.config/mkdocs/check-material-insiders-version.sh +++ b/.config/mkdocs/check-material-insiders-version.sh @@ -35,7 +35,7 @@ material_insiders_repo="https://github.com/squidfunk/mkdocs-material-insiders.gi # Get latest tag from material-insiders git repo. # Got solution from https://stackoverflow.com/questions/29780641/how-to-clone-latest-tag-in-a-git-repo. -latest_tag=$(git ls-remote --verbose --tags --exit-code --refs "$material_insiders_repo" \ +latest_tag=$(git ls-remote --tags --exit-code --refs "${material_insiders_repo}" \ | sed -E 's/^[[:xdigit:]]+[[:space:]]+refs\/tags\/(.+)/\1/g' \ | sort --version-sort | tail -n1) @@ -44,8 +44,8 @@ installed_tag=$(poetry -C .config/mkdocs/ show mkdocs-material | awk '/version/ # Compare tags if [ "$latest_tag" = "$installed_tag" ]; then - echo "Latest material-insiders version $latest_tag already installed." + echo "Latest material-insiders version ${latest_tag} already installed." else - echo "Newer material-insiders version available: $latest_tag. Installing..." - poetry -C .config/mkdocs/ add git+$material_insiders_repo#"$latest_tag" + echo "Newer material-insiders version available: ${latest_tag}. Installing..." + poetry -C .config/mkdocs/ add git+${material_insiders_repo}#"${latest_tag}" fi