feat(script): installation script is done
This commit is contained in:
parent
037bfe1c96
commit
ad32cb996b
20
install.sh
20
install.sh
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
function install_config() {
|
||||
for config in $1; do
|
||||
cp -vr "${config}" "$2"
|
||||
for config in ${@:2}; do
|
||||
cp -vr "./${config}" "$1"
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -31,23 +31,23 @@ read type
|
|||
|
||||
case "${type}" in
|
||||
"L" | "l")
|
||||
install_config $(ls -d -1 "$PWD/"Laptop/*) ~/.config/
|
||||
cp -vrf ./Laptop/* ~/.config/
|
||||
;;
|
||||
"P" | "p")
|
||||
install_config $(ls -d -1 "$PWD/"PC/*) ~/.config/
|
||||
cp -vrf ./PC/* ~/.config/
|
||||
;;
|
||||
*)
|
||||
echo "Please, select your device type correctly"
|
||||
kill "$PID"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
install_config ${general_configs[@]} ~/.config/
|
||||
install_config ${home_dir_configs[@]} ~/
|
||||
install_config ~/.config/ ${general_configs[@]}
|
||||
install_config ~/ ${home_dir_configs[@]}
|
||||
|
||||
betterlockscreen -u ~/.bg/bg_5.png --fx blur --blur 1
|
||||
|
||||
echo "Do you want install custom bspwm xsession to /usr/share/xsessions/? It's needs to become root (Y/N):"
|
||||
echo "Do you want install custom bspwm xsession to /usr/share/xsessions/? It needs to become root (Y/N):"
|
||||
read advanced_install
|
||||
|
||||
case "${advanced_install}" in
|
||||
|
@ -58,7 +58,7 @@ case "${advanced_install}" in
|
|||
echo "Skip"
|
||||
;;
|
||||
*)
|
||||
echo "Please, select your device type correctly"
|
||||
kill "$PID"
|
||||
echo "Please, select your answer correctly"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue