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

Commit

Permalink
Merge pull request #98 from foorb/master
Browse files Browse the repository at this point in the history
improve scripts
  • Loading branch information
Kikobeats committed Oct 6, 2015
2 parents b329940 + d0a56f0 commit 1136f56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
+ [Whats is new in 2.x](#whats-is-new-in-2x)
* [Installation](#installation)
* [Update](#update)
+ [Receive a mail notification when a new version is available.](#receive-a-mail-notification-when-a-new-version-is-available)
+ [Update your current version](#update-your-current-version)
+ [Receive a mail notification when a new version is available.](#receive-a-mail-notification-when-a-new-version-is-available)
* [Development and Customization](#development-and-customization)
* [Showcase](#showcase)
* [License](#license)
Expand Down Expand Up @@ -62,6 +62,17 @@ $ curl -sSL http://git.io/vcIHr | sh

One objective of this project is to adopt an effective policy to have the latest version of the theme all the time. We have divided this process into two steps:


### Update your current version

Make sure you're in the uno-zen directory. Then run

```bash
sh scripts/update
```

That's all!

### Receive a mail notification when a new version is available.

Based in a [IFTTT](https://ifttt.com/recipes) recipe, you can subscribe for know the next releases:
Expand All @@ -72,12 +83,6 @@ Based in a [IFTTT](https://ifttt.com/recipes) recipe, you can subscribe for know
</br>
</div>

### Update your current version

Just run the `sh scripts/update` script for do it.

That's all!

## Development and Customization

See in [documentation](https://github.com/Kikobeats/uno-zen/blob/master/DOCUMENTATION.md).
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -d "uno-zen" ]; then
echo "\nUno Zen is already installed. Maybe you want to update? Run:"
echo "\nsh scripts/update.sh"
echo "\ncd uno-zen && sh scripts/update.sh\n"
exit
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "Searching for updates..."
git fetch --tags origin
latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")

if [ "$currentVersion" == "$latestTag" ]; then
if [ "$currentVersion" = "$latestTag" ]; then
echo "\nYou already have the latest version."
else
echo "\nUpdating $currentVersion to $latestTag..."
Expand Down

0 comments on commit 1136f56

Please sign in to comment.