File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Define colors for output
4+ GREEN=' \033[0;32m'
5+ RED=' \033[0;31m'
6+ NC=' \033[0m' # No Color
7+
8+ # Update package list
9+ echo " Updating package list (you may need to authenticate)..."
10+ apt update
11+ apt install -y curl
12+
13+ # Function to print colored output
14+ print_color () {
15+ printf " ${1}${2}${NC} \n"
16+ }
17+
18+ # Function to check if a command was successful
19+ check_success () {
20+ if [ $? -eq 0 ]; then
21+ print_color " ${GREEN} " " ✔ $1 "
22+ else
23+ print_color " ${RED} " " ✘ $1 "
24+ exit 1
25+ fi
26+ }
27+
28+ # Main installation process
29+ main () {
30+ print_color " ${GREEN} " " Starting CodeQuill manager installation..."
31+
32+ # Navigate to home directory
33+ cd ~ || exit
34+ check_success " Changed to home directory"
35+
36+ # Download the installation script
37+ curl -O https://raw.githubusercontent.com/The-Best-Codes/codequill/main/.device_scripts/codequill.sh
38+ check_success " Downloaded installation script"
39+
40+ # Make the script executable
41+ chmod +x codequill.sh
42+ check_success " Made script executable"
43+
44+ # Run the installation script
45+ ./codequill.sh
46+ check_success " Ran installation script"
47+
48+ print_color " ${GREEN} " " CodeQuill manager installation complete!"
49+ }
50+
51+ # Run the main function
52+ main
You can’t perform that action at this time.
0 commit comments