#!/bin/bash

green=$(echo -e '\e[32m')
reset=$(echo -e '\033(B\033[m')

echo -e "${green}
* ----------------------- *
| Updating sbos-utilities |
* ----------------------- * ${reset}
"

echo -e "${green}=>${reset} Updating os-bootstrap ..."
wget https://raw.githubusercontent.com/Strawberry-Foundations/sbos-scripts/main/os-bootstrap -O /usr/local/bin/os-bootstrap &> /dev/null
chmod a+x /usr/local/bin/os-bootstrap

echo -e "${green}=>${reset} Updating sbos-chroot ..."
wget https://raw.githubusercontent.com/Strawberry-Foundations/sbos-scripts/main/sbos-chroot -O /usr/local/bin/sbos-chroot &> /dev/null
chmod a+x /usr/local/bin/sbos-chroot

echo -e "${green}=>${reset} Updating neofetch ..."
wget https://raw.githubusercontent.com/Strawberry-Foundations/sbos-scripts/main/neofetch -O /usr/local/bin/neofetch &> /dev/null
chmod a+x /usr/local/bin/neofetch

echo -e "${green}=>${reset} Updating somgr ..."
wget https://github.com/Strawberry-Foundations/somgr/releases/download/latest/somgr-x86_64 -O /usr/local/bin/somgr &> /dev/null
chmod a+x /usr/local/bin/somgr

echo -e "${green}=>${reset} Finished util update"