New Script: papirus-icon-theme-installer_(root).sh
Former-commit-id: 17568adf21839a6298fb0daa5b13dc6163e4cff6 Former-commit-id: 7134c19f71dbd45846867385d5a73e01a17b07cd
This commit is contained in:
parent
bc776512cc
commit
a3bb2e9aae
48
papirus-icon-theme-installer_(root).sh
Executable file
48
papirus-icon-theme-installer_(root).sh
Executable file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user