Skip to content

Commit

Permalink
Quote variables
Browse files Browse the repository at this point in the history
  • Loading branch information
samwestmoreland committed Sep 29, 2023
1 parent 7ad8655 commit f7383b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/plugins/lint_plugin_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ URLPREFIX="https://github.com/please-build/"

FAILED=0
for PLUGIN in "${PLUGINS[@]}"; do
LATEST=$(git ls-remote --tags ${URLPREFIX}${PLUGIN}-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1)
LATEST=$(git ls-remote --tags "${URLPREFIX}""${PLUGIN}"-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1)
if [ -z "$LATEST" ]; then
echo "No tags found for ${PLUGIN}"
exit 1
fi

DOCS_VERSION=$(./pleasew query print //docs/... --include ${PLUGIN}_plugin_docs* | grep labels | cut -d: -f2 | cut -d\' -f1)
DOCS_VERSION=$(./pleasew query print //docs/... --include "${PLUGIN}"_plugin_docs* | grep labels | cut -d: -f2 | cut -d\' -f1)
if [ -z "$DOCS_VERSION" ]; then
echo "No docs found for ${PLUGIN}"
exit 1
Expand Down

0 comments on commit f7383b5

Please sign in to comment.