Created
October 24, 2023 16:09
-
-
Save GloriousEggroll/d4c23d6a3bb15f3a8f242f01bb257720 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this is a hack to disable Discord from trying to update itself. We are only able to receive discord updates from our package repo. | |
if [ ! -f $HOME/.config/discord/settings.json ];then | |
mkdir -p $HOME/.config/discord/ | |
echo '{' > $HOME/.config/discord/settings.json | |
echo ' "SKIP_HOST_UPDATE": true' >> $HOME/.config/discord/settings.json | |
echo '}' >> $HOME/.config/discord/settings.json | |
else | |
if [[ -z $(cat $HOME/.config/discord/settings.json | grep SKIP_HOST_UPDATE) ]]; then | |
sed -i '2i \ "SKIP_HOST_UPDATE": true,' $HOME/.config/discord/settings.json | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment