Had to change INSTALL_DIR to my actual install dir ($HOME/.opt)
This commit is contained in:
parent
3102d34556
commit
2437e4a869
@ -5,7 +5,7 @@
|
||||
ACTION=""
|
||||
DOWNLOAD_URL='https://discord.com/api/download/stable?platform=linux&format=tar.gz'
|
||||
VERSION_REGEX='[0-9]+\.[0-9]+\.[0-9]+'
|
||||
INSTALL_DIR=~/Downloads
|
||||
INSTALL_DIR=~/.opt
|
||||
EXISTING_INSTALL=$INSTALL_DIR/Discord
|
||||
BUILD_FILE=$EXISTING_INSTALL/resources/build_info.json
|
||||
PACKAGE_DOWNLOAD_URL_BASE='https://dl.discordapp.net/apps/linux/{VERSION}/discord-{VERSION}.tar.gz'
|
||||
@ -46,7 +46,7 @@ function do_download(){
|
||||
FILENAME="${PACKAGE_DOWNLOAD_URL/*\/}"
|
||||
|
||||
## Downloading the discord package (tar.gz)
|
||||
curl "$PACKAGE_DOWNLOAD_URL" -o "$FILENAME" >/dev/null
|
||||
curl "$PACKAGE_DOWNLOAD_URL" -o "$FILENAME" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
function update_desktop_file() {
|
||||
|
Loading…
Reference in New Issue
Block a user