update auto install script
This commit is contained in:
parent
706eb509e8
commit
b47f8eaf19
|
@ -249,21 +249,22 @@ echo "-----"
|
||||||
printf "\n%.0s" {1..3}
|
printf "\n%.0s" {1..3}
|
||||||
|
|
||||||
# cloning hyprland dotiles to home folder
|
# cloning hyprland dotiles to home folder
|
||||||
echo "${NOTE} downloading and installing hyprland-dotfiles..."
|
echo "${NOTE} downloading and installing nixos-dots..."
|
||||||
if [ -d ~/hyprland-dotfiles ]; then
|
if [ -d ~/nixos-dots ]; then
|
||||||
cd ~/hyprland-dotfiles
|
cd ~/nixos-dots
|
||||||
git stash
|
git stash
|
||||||
git pull
|
git pull
|
||||||
git stash apply
|
git stash apply
|
||||||
chmod +x copy.sh
|
chmod +x copy.sh
|
||||||
./copy.sh
|
./copy.sh
|
||||||
else
|
else
|
||||||
if git clone --depth 1 https://g.r-io.lu/shynd/hyprland-dotfiles ~/hyprland-dotfiles; then
|
if git clone --depth 1 https://g.r-io.lu/shynd/nixos-dots ~/nixos-dots; then
|
||||||
cd ~/hyprland-dotfiles || exit 1
|
cd ~/nixos-dots || exit 1
|
||||||
chmod +x copy.sh
|
chmod +x copy.sh
|
||||||
./copy.sh
|
./copy.sh
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} could not download hyprland-dotfiles!"
|
echo -e "${ERROR} could not download nixos-dots!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -279,7 +280,7 @@ printf "\n%.0s" {1..2}
|
||||||
if command -v Hyprland &> /dev/null; then
|
if command -v Hyprland &> /dev/null; then
|
||||||
printf "\n${OK} installation completed!${RESET}\n"
|
printf "\n${OK} installation completed!${RESET}\n"
|
||||||
sleep 2
|
sleep 2
|
||||||
printf "\n${NOTE} you can start Hyprland by typing Hyprland (not the capital H)${RESET}\n"
|
printf "\n${NOTE} you can start Hyprland by typing Hyprland (note the capital H)${RESET}\n"
|
||||||
printf "\n${NOTE} it is highly recommended to reboot your system${RESET}\n\n"
|
printf "\n${NOTE} it is highly recommended to reboot your system${RESET}\n\n"
|
||||||
|
|
||||||
# prompt user to reboot
|
# prompt user to reboot
|
||||||
|
|
Loading…
Reference in New Issue