Skip to content

Commit

Permalink
Fix commit pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Nov 12, 2023
1 parent 6c8b6c5 commit 74917d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ to_upgrade="${2:-git+https://github.com/mkdocs/mkdocs.git}"
info_dir="projects/${repo_name/\//--}"
repo_dir="repos/${repo_name/\//--}"

[[ "$(head -1 "$info_dir/project.txt")" =~ ^https://github.com/([^/]+/[^/]+)/blob/([^/]+)/(.+)$ ]]
[[ "$(tail -1 "$info_dir/project.txt")" =~ ^https://github.com/([^/]+/[^/]+)/raw/([^/]+)/(.+)$ ]]
repo="${BASH_REMATCH[1]}"
commit="${BASH_REMATCH[2]}"
mkdocs_yml="${BASH_REMATCH[3]}"
Expand Down

0 comments on commit 74917d5

Please sign in to comment.