update
This commit is contained in:
@@ -9,10 +9,23 @@ then
|
|||||||
sudo pacman -S --no-confirm git
|
sudo pacman -S --no-confirm git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clone the repository
|
# Define the directory path
|
||||||
echo "Cloning the repository..."
|
Distro_DIR="$HOME/Arch-Hyprland"
|
||||||
git clone --depth=1 https://github.com/JaKooLit/Arch-Hyprland.git -b development ~/Arch-Hyprland
|
|
||||||
cd ~/Arch-Hyprland
|
# Check if the repository already exists
|
||||||
|
if [ -d "$Distro_DIR" ]; then
|
||||||
|
cd "$Distro_DIR"
|
||||||
|
git stash && git pull
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
|
else
|
||||||
|
# Clone the repository if it doesn't exist
|
||||||
|
echo "$Distro_DIR does not exist. Cloning the repository..."
|
||||||
|
git clone --depth=1 https://github.com/JaKooLit/Arch-Hyprland.git -b development "$Distro_DIR"
|
||||||
|
cd "$Distro_DIR"
|
||||||
|
chmod +x install.sh
|
||||||
|
echo "Running install.sh..."
|
||||||
|
./install.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user