Skip to content

Commit e163edf

Browse files
fix ci
1 parent 04709ee commit e163edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tldrdict/update_pages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cd static
33

44
# json format for all commands with name, languages and platform
5-
curl -L 'https://github.com/tldr-pages/tldr/releases/latest/download/index.json | jq --compact-output '[.commands[] | {command: .name, info: .targets | group_by(.os)[] | {os: .[] | .os, languages: [.[] | .language]}}] | unique' > commands2.json
5+
curl -L 'https://github.com/tldr-pages/tldr/releases/latest/download/index.json' | jq --compact-output '[.commands[] | {command: .name, info: .targets | group_by(.os)[] | {os: .[] | .os, languages: [.[] | .language]}}] | unique' > commands2.json
66
git clone https://github.com/tldr-pages/tldr
77
zip -r allpages.zip tldr/pages*
88
zip -r pages.zip tldr/pages # incase someone is still on the old version he should still get pages.zip
@@ -11,4 +11,4 @@ version=$(curl -s "https://api.github.com/repos/techno-disaster/tldr-flutter/com
1111
echo "{\"version\": \"$version\", \"lastUpdatedAt\": \"$(date +"%Y-%m-%d %T")\"}" > version.txt # deperacated, use versiom.json
1212
echo "{\"version\": \"$version\", \"lastUpdatedAt\": \"$(date +"%Y-%m-%d %T")\"}" > version.json
1313
# add a list of all supported languages to commands2.json
14-
curl -L 'https://github.com/tldr-pages/tldr/releases/latest/download/index.json | jq --compact-output '{supportedLanguages: [.commands[] | .language | .[]] | unique}' > temp.json && jq --compact-output --slurp add version.json temp.json | sponge version.json && rm temp.json
14+
curl -L 'https://github.com/tldr-pages/tldr/releases/latest/download/index.json' | jq --compact-output '{supportedLanguages: [.commands[] | .language | .[]] | unique}' > temp.json && jq --compact-output --slurp add version.json temp.json | sponge version.json && rm temp.json

0 commit comments

Comments
 (0)