Skip to content

Commit

Permalink
Merge pull request #43 from LedgerHQ/tdj/check_app_spec
Browse files Browse the repository at this point in the history
Add a check to verify that app_specification.md has been customized
  • Loading branch information
tdejoigny-ledger authored Oct 26, 2023
2 parents da531ac + ad6c628 commit f95a357
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/check_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@ main() (
log_error_no_header "At least one error has been found"
log_error_no_header "To check the Readme content, run \"cat '$repo/README.md'\""
fi



if echo "$repo_name" | grep -q "app.*boilerplate"; then
log_warning "App specification check skipped for Boilerplate"
else
if [[ -f "$repo/APP_SPECIFICATION.md" ]]; then
if grep -q -i "^#.*Boilerplate" "$repo/APP_SPECIFICATION.md"; then
log_error "Please update the 'APP_SPECIFICATION.md' file with your own app data. Boilerplate should not be mentioned."
error=1
fi
fi
fi

return "$error"
)

Expand Down

0 comments on commit f95a357

Please sign in to comment.