forked from ubuntu-mate/mate-window-applets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-icons.sh
executable file
·49 lines (36 loc) · 917 Bytes
/
install-icons.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
#!/bin/bash
usage=$()
if [[ -z "$1" ]]; then
echo "Usage: $0 {path}(optional) install/uninstall"
exit 1
else
if [[ "$1" == "install" || "$1" == "uninstall" ]]; then
DIR="/usr/share/"
echo "Installing icons in $DIR"
if [[ $1 == "install" ]]; then
cp -v -r data/pixmaps $DIR
elif [[ $1 == "uninstall" ]]; then
rm -v -r $DIR"pixmaps/mate-window-applets"
fi
else
DIR=$1
echo "Installing icons in $DIR"
if [[ -z "$2" ]]; then
echo "Usage: $0 {path}(optional) install/uninstall"
exit 1
else
if [[ "$2" == "install" || "$2" == uninstall ]]; then
if [[ $2 == "install" ]]; then
cp -v -r data/pixmaps $DIR
elif [[ $2 == "uninstall" ]]; then
rm -v -r $DIR"pixmaps/mate-window-applets"
else
echo "Usage: $0 {path}(optional) install/uninstall"
fi
else
echo "Usage: $0 {path}(optional) install/uninstall"
exit 1
fi
fi
fi
fi