Skip to content

Commit

Permalink
add discord install
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfison committed Aug 10, 2022
1 parent dea4676 commit 4a86ea8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
15 changes: 8 additions & 7 deletions AppInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ clear

APPINST_APPS_LIST=(
'Chrome ; chrome'
'Discord ; discord'
'Docker ; docker'
'Extras (codecs, decompressors, etc) ; extras'
'FFMPEG (Latest) ; ffmpeg'
Expand All @@ -33,14 +34,14 @@ multiselect APPINST_APPS_SELECTED APPINST_APPS_LIST

# check if an option has been entered
if [ ${#APPINST_APPS_SELECTED[@]} -eq 0 ]; then
show_warning_log "Error! Select at least one option" &&
exit 1
show_warning_log "Error! Select at least one option" &&
exit 1
fi

for APPINST_APP in "${APPINST_APPS_SELECTED[@]}"; do
if [ -f "$BASEDIR/$APPINST_APP.sh" ]; then
bash $BASEDIR/$APPINST_APP.sh
else
show_error_log "'$APPINST_APP' is not a valid option!"
fi
if [ -f "$BASEDIR/$APPINST_APP.sh" ]; then
bash $BASEDIR/$APPINST_APP.sh
else
show_error_log "'$APPINST_APP' is not a valid option!"
fi
done
12 changes: 12 additions & 0 deletions src/discord.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

source $APPINST_BASEDIR/src/helpers/colors.sh

appinst_file="$APPINST_APPS_PATH/discord.deb"

show_info_log "Downloading installer..." &&
wget "https://discord.com/api/download/stable?platform=linux&format=deb" -O $appinst_file &&
show_info_log "Installing..." &&
sudo dpkg -i $appinst_file &&
rm $appinst_file &&
show_success_log "Discord successfully installed"

0 comments on commit 4a86ea8

Please sign in to comment.