Files
omakub/boot.sh
billybonks 81c6b58d94 refactor: replace apt-get with just apt
i was exploring why we are running update many places in the codebase
and noticed we used apt-get in the start but it doesnt seem required, so
proposing to stream line the commands with just one
2025-02-23 20:08:15 +08:00

29 lines
856 B
Bash
Executable File

set -e
ascii_art='________ __ ___.
\_____ \ _____ _____ | | ____ _\_ |__
/ | \ / \\__ \ | |/ / | \ __ \
/ | \ Y Y \/ __ \| <| | / \_\ \
\_______ /__|_| (____ /__|_ \____/|___ /
\/ \/ \/ \/ \/
'
echo -e "$ascii_art"
echo "=> Omakub is for fresh Ubuntu 24.04+ installations only!"
echo -e "\nBegin installation (or abort with ctrl+c)..."
sudo apt update >/dev/null
sudo apt install -y git >/dev/null
echo "Cloning Omakub..."
rm -rf ~/.local/share/omakub
git clone https://github.com/basecamp/omakub.git ~/.local/share/omakub >/dev/null
if [[ $OMAKUB_REF != "master" ]]; then
cd ~/.local/share/omakub
git fetch origin "${OMAKUB_REF:-stable}" && git checkout "${OMAKUB_REF:-stable}"
cd -
fi
echo "Installation starting..."
source ~/.local/share/omakub/install.sh