update auto install script

This commit is contained in:
shynd 2025-02-25 17:36:02 +01:00
parent 706eb509e8
commit b47f8eaf19
1 changed files with 8 additions and 7 deletions

View File

@ -249,21 +249,22 @@ echo "-----"
printf "\n%.0s" {1..3}
# cloning hyprland dotiles to home folder
echo "${NOTE} downloading and installing hyprland-dotfiles..."
if [ -d ~/hyprland-dotfiles ]; then
cd ~/hyprland-dotfiles
echo "${NOTE} downloading and installing nixos-dots..."
if [ -d ~/nixos-dots ]; then
cd ~/nixos-dots
git stash
git pull
git stash apply
chmod +x copy.sh
./copy.sh
else
if git clone --depth 1 https://g.r-io.lu/shynd/hyprland-dotfiles ~/hyprland-dotfiles; then
cd ~/hyprland-dotfiles || exit 1
if git clone --depth 1 https://g.r-io.lu/shynd/nixos-dots ~/nixos-dots; then
cd ~/nixos-dots || exit 1
chmod +x copy.sh
./copy.sh
else
echo -e "${ERROR} could not download hyprland-dotfiles!"
echo -e "${ERROR} could not download nixos-dots!"
exit 1
fi
fi
@ -279,7 +280,7 @@ printf "\n%.0s" {1..2}
if command -v Hyprland &> /dev/null; then
printf "\n${OK} installation completed!${RESET}\n"
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"
# prompt user to reboot