From bd22c3757ca5883707eb1199f2b565125d14a294 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Sat, 17 Jan 2015 02:24:23 -0200 Subject: [PATCH] changing installer to use travis ci env vars --- tools/install.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/install.fish b/tools/install.fish index a146442..421c0cf 100644 --- a/tools/install.fish +++ b/tools/install.fish @@ -16,7 +16,7 @@ # The installation process is split up in the following steps: # # 1. Resolve source repository to default or get from environment variable. -# This allows installers curl -L ..install.fish | FORK= fish in +# This allows installers curl -L ..install.fish | TRAVIS_REPO_SLUG= fish in # order to test forks of the framework. # # 2. Check for already installed copies of Oh-My-Fish. Do not reinstall. @@ -44,8 +44,8 @@ end log white "Installing Oh My Fish..." # Allow installers to specify the source repository. -if not set -q FORK - set FORK bpinto +if not set -q TRAVIS_REPO_SLUG + set TRAVIS_REPO_SLUG bpinto/oh-my-fish end # Abort installation if oh-my-fish is already installed. @@ -58,12 +58,12 @@ end # Either git clone or curl GET repository. log blue "Cloning Oh My Fish from remote repository..." if type git >/dev/null - git clone "https://github.com/$FORK/oh-my-fish.git" $fish_path + git clone "https://github.com/$TRAVIS_REPO_SLUG.git" $fish_path else log yellow "Install git to pull Oh-My-Fish updates" log white "Downloading remote zip from Github..." - - if curl -sLo $fish_path.zip "https://github.com/$FORK/oh-my-fish/archive/master.zip" + + if curl -sLo $fish_path.zip "https://github.com/$TRAVIS_REPO_SLUG/archive/master.zip" unzip -q $fish_path.zip mv "oh-my-fish-master" $fish_path and log green "Oh-My-Fish succesfully downloaded and extracted to $fish_path"