Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
adjust scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 28, 2015
1 parent 07f741f commit 0dfb6b2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

. "$PWD"/utils.sh

welcome

git clone https://github.com/Kikobeats/uno-zen.git && cd uno-zen

echo "Getting the repository tagged commits"
Expand All @@ -11,3 +15,5 @@ latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
echo "Creating a stable branch from the latest tagged version"
git checkout "$latestTag"
git checkout -b stable

echo "Theme Installed Successful! Enjoy :-)"
20 changes: 20 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
#!/bin/bash

. "$PWD"/scripts/utils.sh

welcome

currentVersion=$(git describe)
echo " Your current version is $currentVersion."

echo " Searching for updates..."
git fetch --tags origin
latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")

if [ "$currentVersion" == "$latestTag" ]
then
echo "\n You already have the latest version."
else
echo " Updating $currentVersion to $latestTag..."
git merge "$latestTag"

fi
11 changes: 11 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

function welcome() {
echo ' _ _ _ _ _____ ______ _____ _ _'
echo '| | | || \ | || _ | |___ /| ___|| \ | |'
echo '| | | || \| || | | | / / | |__ | \| |'
echo '| | | || . ` || | | | / / | __| | . ` |'
echo '| |_| || |\ |\ \_/ / ./ /___| |___ | |\ |'
echo ' \___/ \_| \_/ \___/ \_____/\____/ \_| \_/'
echo
}

0 comments on commit 0dfb6b2

Please sign in to comment.