blob: cbdb4e15488c5560187411c9f57d39ac47c4a176 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ICONS_PATH=/usr/share/icons
ICONS=( "Faenza" "Faenza-Radiance" "hicolor" "ubuntu-mono-dark" "ubuntu-mono-light" )
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root." 1>&2
exit 1
fi
for i in "${ICONS[@]}"
do
if [ -d "${ICONS_PATH}/$i" ]; then
cp -r ${DIR}/icons/$1/* ${ICONS_PATH}/$1
fi
done
|