mirror of
https://github.com/sindresorhus/awesome.git
synced 2026-05-01 20:20:06 -07:00
Fix error handling in repo linter (#4104)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
# Find the repo in the git diff and then set it to an env variables.
|
||||
REPO_TO_LINT=$(
|
||||
@@ -15,7 +16,7 @@ if [ -z "$REPO_TO_LINT" ]; then
|
||||
echo "No new link found in the format: https://....#readme"
|
||||
else
|
||||
echo "Cloning $REPO_TO_LINT"
|
||||
mkdir cloned
|
||||
mkdir -p cloned
|
||||
cd cloned
|
||||
git clone "$REPO_TO_LINT" .
|
||||
npx awesome-lint
|
||||
|
||||
Reference in New Issue
Block a user