mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-27 18:25:12 +08:00
changing installer to use travis ci env vars
This commit is contained in:
parent
123b5d1bd4
commit
bd22c3757c
@ -16,7 +16,7 @@
|
|||||||
# The installation process is split up in the following steps:
|
# The installation process is split up in the following steps:
|
||||||
#
|
#
|
||||||
# 1. Resolve source repository to default or get from environment variable.
|
# 1. Resolve source repository to default or get from environment variable.
|
||||||
# This allows installers curl -L ..install.fish | FORK=<fork> fish in
|
# This allows installers curl -L ..install.fish | TRAVIS_REPO_SLUG=<fork> fish in
|
||||||
# order to test forks of the framework.
|
# order to test forks of the framework.
|
||||||
#
|
#
|
||||||
# 2. Check for already installed copies of Oh-My-Fish. Do not reinstall.
|
# 2. Check for already installed copies of Oh-My-Fish. Do not reinstall.
|
||||||
@ -44,8 +44,8 @@ end
|
|||||||
log white "Installing Oh My Fish..."
|
log white "Installing Oh My Fish..."
|
||||||
|
|
||||||
# Allow installers to specify the source repository.
|
# Allow installers to specify the source repository.
|
||||||
if not set -q FORK
|
if not set -q TRAVIS_REPO_SLUG
|
||||||
set FORK bpinto
|
set TRAVIS_REPO_SLUG bpinto/oh-my-fish
|
||||||
end
|
end
|
||||||
|
|
||||||
# Abort installation if oh-my-fish is already installed.
|
# Abort installation if oh-my-fish is already installed.
|
||||||
@ -58,12 +58,12 @@ end
|
|||||||
# Either git clone or curl GET repository.
|
# Either git clone or curl GET repository.
|
||||||
log blue "Cloning Oh My Fish from remote repository..."
|
log blue "Cloning Oh My Fish from remote repository..."
|
||||||
if type git >/dev/null
|
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
|
else
|
||||||
log yellow "Install git to pull Oh-My-Fish updates"
|
log yellow "Install git to pull Oh-My-Fish updates"
|
||||||
log white "Downloading remote zip from Github..."
|
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
|
unzip -q $fish_path.zip
|
||||||
mv "oh-my-fish-master" $fish_path
|
mv "oh-my-fish-master" $fish_path
|
||||||
and log green "Oh-My-Fish succesfully downloaded and extracted to $fish_path"
|
and log green "Oh-My-Fish succesfully downloaded and extracted to $fish_path"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user