README.md (1028B)
1 # A function to update discord on Debian 2 3 Updating discord is annoying. Initially, this script automated the process. Now, it also checks headers, so that it can be added to a crontab or similar, and it only downloads the ~100 Mb discord file if it is indeed new. 4 5 ## Usage 6 7 **Download and execute** 8 9 ```sh 10 $ curl https://git.nunosempere.com/NunoSempere/update_discord/raw/branch/master/update_discord.sh -o update_discord.sh 11 $ cat update_discord.sh 12 $ bash update_discord.sh 13 ``` 14 15 **Add to .bashrc** 16 17 You might also want to add the contents of update_discord.sh to your `.bashrc` file or similar. 18 19 **Usage in cron** 20 21 I think this is how you would add this to a crontab: 22 23 ``` 24 $ sudo crontab -e 25 # Then, inside the crontab 26 8 * * * * bash /download_path/update_discord.sh 27 ``` 28 29 However, I haven't tested this yet with a new update 30 31 ## Stack 32 33 - curl 34 - apt—implying Debian or derivatives 35 - bash 36 37 38 ## Security posture 39 40 Total disregard. If you automatically download discord updates, if they are compromised you would have no warning.