mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
Avoid unnecessary git commands if OMAKUB_REF is master
Otherwise it'd try to check out the branch it's already on.
This commit is contained in:
8
boot.sh
8
boot.sh
@@ -18,9 +18,11 @@ 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
|
||||
cd ~/.local/share/omakub
|
||||
git fetch origin "${OMAKUB_REF:-stable}" && git checkout FETCH_HEAD
|
||||
cd -
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user