Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
discord
discord
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File discord of Package discord
#!/bin/bash #in the file $HOME/.config/discord/settings.json #if the setting SKIP_HOST_UPDATE does not exist add it #otherwise leave it untouched CONFIGFILE=$HOME/.config/discord/settings.json EXE=$(dirname "$0")/../lib64/discord/Discord if [[ -x $EXE ]]; then if [[ -d $HOME/.config && ! -f $CONFIGFILE ]]; then [[ ! -d $HOME/.config/discord ]] && mkdir $HOME/.config/discord echo '{"SKIP_HOST_UPDATE": true}' >$CONFIGFILE elif [[ -f $CONFIGFILE ]]; then ! grep -qF SKIP_HOST_UPDATE $CONFIGFILE && \ sed -i '/^{/s@$@\n "SKIP_HOST_UPDATE": true,@' $CONFIGFILE fi exec $EXE "$@" fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor