Skip to content

Commit

Permalink
refactor: implement my opinionated flow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehsiao committed Nov 21, 2024
1 parent faaae68 commit b1c6259
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions boot.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
set -e

ascii_art='________ __ ___.
\_____ \ _____ _____ | | ____ _\_ |__
/ | \ / \\__ \ | |/ / | \ __ \
/ | \ Y Y \/ __ \| <| | / \_\ \
\_______ /__|_| (____ /__|_ \____/|___ /
\/ \/ \/ \/ \/
'
ascii_art=$(cat <<'EOF'
_ _ _ __ _
___ _ __ __ _| |____ _ ___ ___ ___| |__| |_ _ ___ / _(_)_ _
/ _ \ ' \/ _` | / / _` (_-</ -_)___| '_ \ | || / -_) _| | ' \
\___/_|_|_\__,_|_\_\__,_/__/\___| |_.__/_|\_,_\___|_| |_|_||_|
EOF
)

echo -e "$ascii_art"
echo "=> Omakub is for fresh Ubuntu 24.04 installations only!"
echo "=> omakase-bluefin is for fresh bluefin-stable installations only!"
echo -e "\nBegin installation (or abort with ctrl+c)..."

sudo apt-get update >/dev/null
sudo apt-get 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 "Cloning omakase-bluefin..."
rm -rf ~/.local/share/omakase-bluefin
git clone https://github.com/lukehsiao/omakase-bluefin.git ~/.local/share/omakase-bluefin>/dev/null

echo "Installation starting..."
source ~/.local/share/omakub/install.sh

0 comments on commit b1c6259

Please sign in to comment.