updated
This commit is contained in:
@@ -6,16 +6,18 @@ Github_URL="https://github.com/JaKooLit/$Distro.git"
|
|||||||
Distro_DIR="$HOME/$Distro"
|
Distro_DIR="$HOME/$Distro"
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
# Package GIT
|
|
||||||
if ! command -v git &> /dev/null
|
if ! command -v git &> /dev/null
|
||||||
then
|
then
|
||||||
echo "Git not found! Installing Git..."
|
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
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Check if the repository already exists
|
|
||||||
if [ -d "$Distro_DIR" ]; then
|
if [ -d "$Distro_DIR" ]; then
|
||||||
echo "$Distro_DIR exists. Updating the repository..."
|
echo "$Distro_DIR exists. Updating the repository..."
|
||||||
cd "$Distro_DIR"
|
cd "$Distro_DIR"
|
||||||
@@ -28,4 +30,4 @@ else
|
|||||||
cd "$Distro_DIR"
|
cd "$Distro_DIR"
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user