Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize boot.sh to support running any ref #187

Merged
merged 4 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions boot-dev.sh

This file was deleted.

9 changes: 7 additions & 2 deletions boot.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ 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 stable Omakub..."
echo "Cloning Omakub..."
rm -rf ~/.local/share/omakub
git clone -b stable https://github.com/basecamp/omakub.git ~/.local/share/omakub >/dev/null
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 FETCH_HEAD
cd -
fi

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