forked from basecamp/omakub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: implement my opinionated flow
- Loading branch information
Showing
1 changed file
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |