-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardcodefixer-latest.sh
executable file
·139 lines (113 loc) · 4.39 KB
/
hardcodefixer-latest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
#
#
# MMMMMMMMMMMMMMMMMMMMMMMMMmds+.
# MMm----::-://////////////oymNMd+`
# MMd /++ -sNMd:
# MMNso/` dMM `.::-. .-::.` .hMN:
# ddddMMh dMM :hNMNMNhNMNMNh: `NMm
# NMm dMM .NMN/-+MMM+-/NMN` dMM
# NMm dMM -MMm `MMM dMM. dMM
# NMm dMM -MMm `MMM dMM. dMM
# NMm dMM .mmd `mmm yMM. dMM
# NMm dMM` ..` ... ydm. dMM
# hMM- +MMd/-------...-:sdds dMM
# -NMm- :hNMNNNmdddddddddy/` dMM
# -dMNs-``-::::-------.`` dMM
# `/dMNmy+/:-------------:/yMMM
# ./ydNMMMMMMMMMMMMMMMMMMMMM
# \.MMMMMMMMMMMMMMMMMMM
#
#
#
##################################################################################################################
#
# Current project : Ultimate-Linux-Mint-18
#
# Source : https://github.com/erikdubois/Ultimate-Linux-Mint-18
#
##################################################################################################################
# Written to be used on 64 bits computers
# Author : Erik Dubois
# Website : http://www.erikdubois.be
##################################################################################################################
#
# More from Erik Dubois
#
# Aurora Conky
# at http://sourceforge.net/projects/auroraconkytheme/
# Explanation on the use of this theme can be found at
# http://erikdubois.be/category/linux/aurora-conky/
#
# Aureola Conky
# Collections of nice conky's with lua syntax
# https://github.com/erikdubois/Aureola
#
# Sardi icons
# Many different styles of icons from colourfull, monochrome, white, circle
# https://sourceforge.net/projects/sardi/
#
# Super Ultra Flat Numix Remix
# Colourfull and playfull icons
# https://github.com/erikdubois/Super-Ultra-Flat-Numix-Remix
#
# Check out the github - many more scripts for automatic installation of Linux Systems.
#
#
#
#
#
##################################################################################################################
# If the option -y has been added. It will autoinstall all. Omit if you do not want that.
##################################################################################################################
#
#
#
#
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. AT YOUR OWN RISK.
#
##################################################################################################################
# if there is already a folder, delete or else do nothing
echo "The script will install itself in the /tmp/hardcode-fixer folder"
echo "It will run from there"
echo "Upon next boot the tmp folder will be empty again"
echo "#################################################"
[ -d /tmp/hardcode-fixer ] && rm -rf "/tmp/hardcode-fixer" || echo ""
echo "################################################################"
echo "Checking if git is installed"
echo "Install git for an easy installation"
# G I T
# check if git is installed
if which git > /dev/null; then
echo "git was installed. Proceding..."
else
echo "################################################################"
echo "installing git for this script to work"
echo "################################################################"
sudo apt-get install git -y
fi
git clone https://github.com/Foggalong/hardcode-fixer /tmp/hardcode-fixer
echo "################################################################"
echo "Checking if curl is installed"
echo "Install curl for an easy installation"
# curl
# check if curl is installed
if which curl > /dev/null; then
echo "curl was installed. Proceding..."
else
echo "################################################################"
echo "installing curl for this script to work"
echo "################################################################"
sudo apt-get install curl -y
fi
echo "#################################################"
echo "Checking and changing all hardcoded icons"
echo "#################################################"
sudo /tmp/hardcode-fixer/fix.sh
echo
echo
echo "################################################################"
echo "################### T H E E N D ######################"
echo "################################################################"