From a3bb2e9aaeeafdfb72b96512450cd1cc0876d13e Mon Sep 17 00:00:00 2001 From: mollusk Date: Mon, 14 Jan 2019 23:20:06 -0700 Subject: [PATCH] New Script: papirus-icon-theme-installer_(root).sh Former-commit-id: 17568adf21839a6298fb0daa5b13dc6163e4cff6 Former-commit-id: 7134c19f71dbd45846867385d5a73e01a17b07cd --- papirus-icon-theme-installer_(root).sh | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 papirus-icon-theme-installer_(root).sh diff --git a/papirus-icon-theme-installer_(root).sh b/papirus-icon-theme-installer_(root).sh new file mode 100755 index 0000000..3c4ef11 --- /dev/null +++ b/papirus-icon-theme-installer_(root).sh @@ -0,0 +1,48 @@ +#!/bin/bash + +# Colors +RED='\033[0;31m' +LRED="\033[1;31m" +BLUE="\033[0;34m" +LBLUE="\033[1;34m" +GREEN="\033[0;32m" +LGREEN="\033[1;32m" +YELLOW="\033[1;33m" +CYAN="\033[0;36m" +LCYAN="\033[1;36m" +PURPLE="\033[0;35m" +LPURPLE="\033[1;35m" +BWHITE="\e[1m" +NC='\033[0m' # No Color + +# General Vars +#CURRENT_DATE=$(date +%Y%m%d) +#CURRENT_DATE=$(date -d 2013-07-18 +%s) +#=$(date -d 2014-08-19 +%s) + +if [[ $EUID -ne 0 ]]; then + printf "${LRED}This script must be run as root${NC}\n" 1>&2 + exit 1 +fi + +#if [ $todate -ge $cond ]; +#then +# break +#fi + + +# Check dependencies +if [ ! -f /usr/bin/wget ];then + echo -e "\n${LRED}Missing Dependency: wget${NC}\n\n" + echo -e "${BWHITE}Ubuntu/Debian: sudo apt install wget${NC}\n" + echo -e "${BWHITE}Fedora: sudo dnf install wget${NC}\n" + echo -e "${BWHITE}OpenSuse: sudo zypper install wget${NC}\n" + echo -e "${BWHITE}Solus: sudo eopkg it wget${NC}\n" + echo -e "${BWHITE}Gentoo: emerge -a wget${NC}\n" + echo -e "${BWHITE}Sabayon: sudo equo install wget${NC}\n" + echo -e "${BWHITE}Void Linux: sudo xbps-install wget${NC}\n" + exit 0; +fi + +wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/master/install.sh | sh +