Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

update-discord.sh

Shell script to update Discord on Linux.

Why am I even doing this myself?

Discord の公式.debを対象に、現在のインストールバージョンと最新バージョンを比較し、差分があれば更新するシンプルなスクリプトです。

flowchart TD;
  api[curl https://discord.com/api/download/...]
  cdn[/location: https://.../x.x.x/discord-x.x.x/]
  latest[Extract latest version]
  current[Get installed version]
  check{Versions match?}
  api --- |302 redirect| cdn
  cdn --> latest
  current --> check
  latest --> check
  check --> |Yes| t[Do nothing]
  check --> |No| f[install / update]
Loading

About

Shell script to update Discord on Linux. Why am I even doing this myself?

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors