-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·27 lines (25 loc) · 803 Bytes
/
install.sh
File metadata and controls
executable file
·27 lines (25 loc) · 803 Bytes
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
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo -e "Installing KvLibadwaita as a \033[1muser\033[0m. Is this what you want? (y/n)"
read -p "" -n 1 -r
echo "" # New line
if [[ $REPLY =~ ^[Yy]$ ]]
then # Install theme as user
cp -r ./src/* ~/.config/Kvantum/
MESSAGE="Installation complete."
else # Don't install theme as user
MESSAGE="Installation aborted."
fi
else
echo -e "Installing KvLibadwaita as \033[1mroot\033[0m. Is this what you want? (y/n)"
read -p "" -n 1 -r
echo "" # New line
if [[ $REPLY =~ ^[Yy]$ ]]
then # Install theme as user
cp -r ./src/* /usr/share/Kvantum/
MESSAGE="Installation complete."
else # Don't install theme as user
MESSAGE="Installation aborted."
fi
fi
echo -e $MESSAGE