-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·65 lines (58 loc) · 1.5 KB
/
install
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
#!/bin/bash
PREFIX="Icons"
LOCAL="/usr/share/icons/Papirus"
echo "Welcome to Papirus' Linux Universe installer!"
echo "For better usage, run this script using root user!"
echo -n "Did you previously install on the Papirus Nord version? (Type Y or N) "
read cond
if [[ ( $cond != "Y" ) && ( $cond != "N" ) ]]
then
echo "Please enter a valid option!"
exit 0
fi
install() {
if [ $cond = "Y" ]
then
cp -f papirus-folders1 /usr/bin/papirus-folders
else
if [ $cond = "N" ]
then
cp -f papirus-folders /usr/bin
fi
fi
}
if [ ! $USER = "root" ]
then
if [ ! -d /home/$USER/.icons/Papirus ]
then
echo "Install first the papirus icon!"
exit 0
else
echo "Papirus icon already installed!"
LOCAL="/home/$USER/.icons/Papirus"
fi
else
if [ ! -d $LOCAL ]
then
echo "Install first the papirus icon!"
exit 0
else
if [ ! -f /usr/bin/papirus-folders ]
then
echo "Papirus-folders script not is installed!"
install
echo "Papirus-folders script installed!"
else
echo "Papirus-folder script has already been installed! It will be overwritten!"
install
echo "Papirus-folder script updated!"
fi
fi
fi
echo "Instaling icons..."
cp $PREFIX/64x64/* $LOCAL/64x64/places
cp $PREFIX/48x48/* $LOCAL/48x48/places
cp $PREFIX/32x32/* $LOCAL/32x32/places
cp $PREFIX/24x24/* $LOCAL/24x24/places
cp $PREFIX/22x22/* $LOCAL/22x22/places
echo "Icons installed!"