mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
21 lines
586 B
Bash
21 lines
586 B
Bash
# Exit immediately if a command exits with a non-zero status
|
|
set -e
|
|
|
|
# Give people a chance to retry running the installation
|
|
trap '
|
|
echo "Omarchy installation failed!"
|
|
echo "You can retry by running: source ~/.local/share/omarchy/install.sh"
|
|
echo "Get help from the community: https://discord.gg/tXFUdasqhY"
|
|
' ERR
|
|
|
|
# Install everything
|
|
for f in ~/.local/share/omarchy/install/*.sh; do
|
|
echo -e "\nRunning installer: $f"
|
|
source "$f"
|
|
done
|
|
|
|
# Ensure locate is up to date now that everything has been installed
|
|
sudo updatedb
|
|
|
|
gum confirm "Reboot to apply all settings?" && reboot
|