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]