Skip to content

Commit

Permalink
Tolerate no trailing .git when determining SHORTNAME (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip authored Jun 12, 2020
1 parent 1573fa3 commit d3bcf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources.whatwg.org/build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o nounset
# https://github.com/whatwg/whatwg.org/tree/master/resources.whatwg.org/build.
# See README.md for documentation.

SHORTNAME=$(git config --local remote.origin.url | sed -n 's#.*/\([^.]*\)\.git#\1#p')
SHORTNAME=$(git config --local remote.origin.url | sed -n 's#.*/\([^.]*\)\(\.git\)\?#\1#p')
INPUT_FILE=$(find . -maxdepth 1 -name "*.bs" -print -quit)

WEB_ROOT="$SHORTNAME.spec.whatwg.org"
Expand Down

0 comments on commit d3bcf77

Please sign in to comment.