Skip to content

Commit 21d5db4

Browse files
committed
Remove second conditional to always use git+
1 parent cd25de8 commit 21d5db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/files/lint-project-structure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ for PROJECT in projects/*/*; do
165165
echo "::error file=$PROJECT/package.json${LINE:-$LINE2}::Set \`.repository.type\` to \"git\", as the monorepo is a git repository."
166166
fi
167167
URL="$(jq -r '.url' <<<"$JSON")"
168-
if [[ "$URL" != "git+https://github.com/Automattic/jetpack.git" && "$URL" != "https://github.com/Automattic/jetpack" ]]; then
168+
if [ "$URL" != "git+https://github.com/Automattic/jetpack.git" ]; then
169169
EXIT=1
170170
LINE=$(jq --stream -r 'if length == 1 then .[0][:-1] else .[0] end | if . == ["repository","url"] then ",line=\( input_line_number )" else empty end' "$PROJECT/package.json")
171171
echo "::error file=$PROJECT/package.json${LINE:-$LINE2}::Set \`.repository.url\` to point to the monorepo, i.e. \"https://github.com/Automattic/jetpack\"."

0 commit comments

Comments
 (0)