#!/bin/bash

set -e

# Ensure the clock is synced before we start
sudo systemctl restart systemd-timesyncd

omarchy-snapshot create || [ $? -eq 127 ]
omarchy-update-git
omarchy-migrate
omarchy-update-system-pkgs
omarchy-update-restart
omarchy-restart-waybar # removes update-available icon
