Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b3e36c

Browse files
Update CDN publish script to add '_un' suffix to topojson files
1 parent 7410c34 commit 5b3e36c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎tasks/cdn_publish.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ for path in `ls $dist/plotly*`; do
2929
done
3030

3131
# copy topojson files over to the sync folder
32-
cp $dist/topojson/* $sync
32+
# NOTE: Temporarily adding the suffix '_un' to avoid overwriting the old topojson
33+
# which some old plots might depend on
34+
for filepath in $dist/topojson/*.json; do
35+
f=${filepath##*/}
36+
f=${f%.*}
37+
cp $filepath "$sync/${f%.*}_un.json"
38+
done
3339

3440
# list folder and files
3541
echo $sync

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /