-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclone_and_install.sh
More file actions
37 lines (30 loc) · 835 Bytes
/
clone_and_install.sh
File metadata and controls
37 lines (30 loc) · 835 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
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -e
set -o pipefail
# Function to check if required commands are installed
check_required_commands() {
if ! command -v git >/dev/null 2>&1; then
echo "Error: git is not installed. Please install git and curl to run this script."
exit 1
fi
if ! command -v curl >/dev/null 2>&1; then
echo "Error: curl is not installed. Please install git and curl to run this script."
exit 1
fi
}
# Function to clone the repository
clone_repository() {
echo "Cloning eMush repository..."
git clone https://gitlab.com/eternaltwin/mush/mush.git && cd mush
}
# Function to launch the install script
launch_install_script() {
echo "Launching install script..."
source ./install.sh
}
run() {
check_required_commands
clone_repository
launch_install_script
}
run