This commit is contained in:
JaKooLit
2025-03-07 16:17:39 +09:00
parent 432a2070cf
commit 971a4083ff

View File

@@ -6,16 +6,18 @@ Github_URL="https://github.com/JaKooLit/$Distro.git"
Distro_DIR="$HOME/$Distro"
printf "\n%.0s" {1..1}
# Package GIT
if ! command -v git &> /dev/null
then
echo "Git not found! Installing Git..."
sudo pacman -S --no-confirm git
if ! sudo pacman -S --no-confirm git; then
echo "Failed to install Git. Exiting."
exit 1
fi
fi
printf "\n%.0s" {1..1}
# Check if the repository already exists
if [ -d "$Distro_DIR" ]; then
echo "$Distro_DIR exists. Updating the repository..."
cd "$Distro_DIR"
@@ -28,4 +30,4 @@ else
cd "$Distro_DIR"
chmod +x install.sh
./install.sh
fi
fi