-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.sh
executable file
·40 lines (33 loc) · 940 Bytes
/
packages.sh
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
38
39
#!/usr/bin/env bash
# Update the system
echo "Updating the system..."
sudo pacman -Syu --noconfirm
if [ $? -ne 0 ]; then
echo "Error: System update failed."
exit 1
fi
# Function to run a script and check its exit status
run_script() {
local script=$1
echo "Running $script..."
bash "$script"
if [ $? -ne 0 ]; then
echo "Error: $script failed."
exit 1
fi
echo "$script completed successfully."
}
## Full Setup for Hyprland Packages and Configurations
echo "Starting full setup for Hyprland packages and configurations..."
gum confirm "Do you want to start the full installation? (y/n): "
if [ $? -ne 0 ]; then
echo "Setup cancelled."
exit 1
fi
echo
# Run the scripts in sequence
run_script "./.install/general-packages.sh"
run_script "./.install/hyprland-pkgs.sh"
run_script "./.install/custom-pkgs.sh"
echo -e "All scripts completed successfully."
echo -e "Enjoy your system."