Skip to content

Commit 0eccbfb

Browse files
committed
chore(build): escape slash in site-publish script
Closes #574
1 parent 9b57836 commit 0eccbfb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/site/publish.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ function run {
2424
--branch gh-pages
2525

2626
cd $IONIC_SITE_DIR
27+
git reset --hard origin/gh-pages
2728

28-
$(replaceInFile "_config.yml" "latest_download:.*" "latest_download: http://code.ionicframework.com/$VERSION/ionic-v$VERSION.zip")
29-
$(replaceInFile "_config.yml" "latest_version:.*" "latest_version: $VERSION \"$CODENAME\"")
30-
$(replaceInFile "_config.yml" "latest_release_date:.*" "latest_release_date: $DATE")
29+
$(replaceInFile "_config.yml" "latest_download:.*$" "latest_download: http:\/\/code.ionicframework.com\/$VERSION\/ionic-v$VERSION.zip")
30+
$(replaceInFile "_config.yml" "latest_version:.*$" "latest_version: $VERSION \"$CODENAME\"")
31+
$(replaceInFile "_config.yml" "latest_release_date:.*$" "latest_release_date: $DATE")
3132

3233
git add -A
33-
git commit -am "release: $VERSION ($VERSION_LABEL)"
34+
git commit -am "release: $VERSION"
3435

3536
git push -q origin gh-pages
3637

0 commit comments

Comments
 (0)