-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinuxSetup.sh
More file actions
27 lines (22 loc) · 772 Bytes
/
linuxSetup.sh
File metadata and controls
27 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Define color variables
GREEN="\033[01;92m" # Bright green
BLUE="\033[01;94m" # Bright blue
RED="\033[01;91m" # Bright red
RESET="\033[00m"
# Check if git is installed
if ! command -v git &> /dev/null; then
echo -e "${GREEN}Git not found. Installing git...${RESET}"
sudo apt-get update
sudo apt-get install -y git
fi
# Clone the GitHub repository
REPO_URL="https://github.com/arghyabi/LinuxSetup.git"
CLONE_DIR="$HOME/LinuxSetup"
echo -e "${BLUE}Cloning repository from GitHub...${RESET}"
git clone "$REPO_URL" "$CLONE_DIR"
# Change to the repo directory
cd "$CLONE_DIR" || { echo -e "${RED}Failed to enter repo directory${RESET}"; exit 1; }
# Run the script
echo -e "${GREEN}Running configureLinux.sh...${RESET}"
source configureLinux.sh