update auto-install script

This commit is contained in:
shynd 2025-02-20 20:25:26 +01:00
parent 552b23f2da
commit ffe4d19757
1 changed files with 17 additions and 1 deletions

View File

@ -250,7 +250,23 @@ echo "-----"
printf "\n%.0s" {1..3}
# cloning hyprland dotiles to home folder
# TODO
echo "${NOTE} downloading and installing hyprland-dotfiles..."
if [ -d ~/hyprland-dotfiles ]; then
cd ~/hyprland-dotfiles
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
chmod +x copy.sh
./copy.sh
else
echo -e "${ERROR} could not download hyprland-dotfiles!"
fi
fi
# return to nixos-config directory
cd ~/nixos-config