Skip to content

Commit 96ea7fe

Browse files
authored
Handle redirect fetching templates (#793)
1 parent b46b85c commit 96ea7fe

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
Bugfixes:
11+
- Fix `docs` command error due to bad templates (#792)
12+
1013
## [0.20.2] - 2021-05-06
1114

1215
Bugfixes:

scripts/fetch-templates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ for version in $versions; do
66
file1="${templatesDir}/docs-search-app-${version}.js"
77
if [ ! -f "${file1}" ]; then
88
echo "Fetching ${file1}";
9-
curl "https://github.com/purescript/purescript-docs-search/releases/download/v${version}/docs-search-app.js" -o ${file1}
9+
curl -L "https://github.com/purescript/purescript-docs-search/releases/download/v${version}/docs-search-app.js" -o ${file1}
1010
fi
1111
file2="${templatesDir}/purescript-docs-search-${version}"
1212
if [ ! -f "${file2}" ]; then
1313
echo "Fetching ${file2}";
14-
curl "https://github.com/purescript/purescript-docs-search/releases/download/v${version}/purescript-docs-search" -o ${file2}
14+
curl -L "https://github.com/purescript/purescript-docs-search/releases/download/v${version}/purescript-docs-search" -o ${file2}
1515
chmod +x "${file2}"
1616
fi
1717
done

spago.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: spago
4-
version: 0.20.2
4+
version: 0.20.3
55
description: Please see the README on GitHub at <https://github.com/purescript/spago#readme>
66
homepage: https://github.com/purescript/spago#readme
77
bug-reports: https://github.com/purescript/spago/issues

0 commit comments

Comments
 (0)