From 2437e4a8698be585ce002c17547adb374332e1ac Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Mon, 13 Nov 2023 21:36:33 -0600 Subject: [PATCH] Had to change INSTALL_DIR to my actual install dir ($HOME/.opt) --- install-discord-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-discord-linux.sh b/install-discord-linux.sh index 5958826..3ffab8a 100755 --- a/install-discord-linux.sh +++ b/install-discord-linux.sh @@ -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() {