Fork me on GitHub

Slack

Description: Installs Slack.

#!/bin/bash
rm /tmp/slack-desktop-3.1.0-amd64.deb

wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.1.0-amd64.deb -O /tmp/slack-desktop-3.1.0-amd64.deb
sudo dpkg -i /tmp/slack-desktop-3.1.0-amd64.deb

rm /tmp/slack-desktop-3.1.0-amd64.deb

echo "fixing hardcoded icon"
old="Icon=\/usr\/share\/pixmaps\/slack.png"
new="Icon=slack"
location="/usr/share/applications/slack.desktop"
sudo sed -i s/$old/$new/g $location


Download the Script here.