From 65a35497948b01895bc342728d2b2062495b433f Mon Sep 17 00:00:00 2001 From: foorb Date: Tue, 6 Oct 2015 14:09:54 +0200 Subject: [PATCH 1/4] compare operator Using one compare operator is better in shell. In bash it seems to doesn't matter, but shell throws a error here scripts/update.sh: 14: [: 2.5.5: unexpected operator --- scripts/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update.sh b/scripts/update.sh index 7a2a8f91..0117ed90 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -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..." From b7a01e68dae26aa74e838f3e71515356216fcded Mon Sep 17 00:00:00 2001 From: foorb Date: Tue, 6 Oct 2015 14:27:02 +0200 Subject: [PATCH 2/4] improve install/update --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 3ecdec7a..f3b9e8eb 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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 From 3507855a7da2150c7853459f43f41160afcf80cf Mon Sep 17 00:00:00 2001 From: foorb Date: Tue, 6 Oct 2015 15:16:18 +0200 Subject: [PATCH 3/4] update README --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8d66e333..ca3783c6 100755 --- a/README.md +++ b/README.md @@ -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) @@ -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 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: @@ -72,12 +83,6 @@ Based in a [IFTTT](https://ifttt.com/recipes) recipe, you can subscribe for know
-### 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). From d0a56f03d2a59cac890a9b5bd63261afd09b0ad4 Mon Sep 17 00:00:00 2001 From: foorb Date: Tue, 6 Oct 2015 15:25:32 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca3783c6..25cbb96e 100755 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ One objective of this project is to adopt an effective policy to have the latest ### Update your current version -Make sure you in the uno-zen directory. Then run +Make sure you're in the uno-zen directory. Then run ```bash sh scripts/update