Skip to content

Commit

Permalink
Fixing references to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Nov 12, 2020
1 parent 1efa136 commit 01f6f95
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
24 changes: 12 additions & 12 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Perhaps the easiest way to install _Bashmatic®_ is using this boot-strapping sc
First, make sure that you have Curl installed, run `which curl` to see. Then copy/paste this command into your Terminal.
NOTE: The shortcut link resolves to the HEAD version of the https://raw.githubusercontent.com/kigster/bashmatic/master/bin/bootstrap[`bin/bootstrap`] script in Bashmatic Repo.
NOTE: The shortcut link resolves to the HEAD version of the https://raw.githubusercontent.com/kigster/bashmatic/master/bin/bashmatic-install[`bin/bashmatic-install`] script in Bashmatic Repo.
[source,bash]
Expand All @@ -83,7 +83,7 @@ $ bash -c "$(curl -fsSL https://bashmatic.re1.re); bashmatic-install -v"
What this command does:
* It downloads the `bin/bootstrap` script with `curl` and evaluates it using the built-in bash interpreter.
* It downloads the `bin/bashmatic-install` script with `curl` and evaluates it using the built-in bash interpreter.
* The script will attempt to `git clone` the bashmatic repo into your home folder: `${BASHMATIC_HOME}`, or (if it already exists), it will `git pull` latest changes.
* The script may ask for your password to enable sudo access — this may be required on OS-X to install XCode Developer tools (which include `git`), as well as the latest version of BASH (5+) into `/usr/local/bin/bash`
* The script will also install Homebrew on OS-X, if not already there.
Expand All @@ -94,23 +94,23 @@ Once Bashmatic is downloaded, you can run `bootstrap` script with `-h` to see th
[source,bash]
----
bin/bootstrap -h
$ bin/bashmatic-install -h
USAGE:
bin/bootstrap [ flags ]
bin/bashmatic-install [ flags ]
DESCRIPTION:
Install Bashmatic, and on OSX also installs build tools, brew and latest bash
into /usr/local/bin/bash.
FLAGS:
-H, --bashmatic-home PATH Install bashmatic into PATH (default: /Users/kig/.bashmatic)
-V, --bash-version VERSION Install BASH VERSION (default: 5.1-rc2)
-P, --bash-prefix PATH Install BASH into PATH (default: /usr/local)
-g, --skip-git Do not abort if existing bashmatic home has local changes
-v, --verbose See additional output as bootstrap is running.
-d, --debug Turn on 'set -x' to see all commands running.
-h, --help Show this help message.
-H, --bashmatic-home PATH (default: /Users/kig/.bashmatic)
-V, --bash-version VERSION BASH VERSION (default: 5.1-rc2)
-P, --bash-prefix PATH BASH into PATH (default: /usr/local)
-g, --skip-git Do not abort if bashmatic home has local changes
-v, --verbose See additional output.
-d, --debug Turn on 'set -x' to see all commands running.
-h, --help Show this help message.
----
Expand All @@ -119,7 +119,7 @@ Restart your shell, and make sure that when you type `bashmatic.version` in the
[source,bash]
----
$ bashmatic.version
1.4.0
1.5.0
----
If you get an error, perhaps _Bashmatic®_ did not properly install.
Expand Down
Binary file modified README.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions bin/bashmatic-install
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ is-verbose() {
usage() {
printf "
${bldylw}USAGE:
${bldgrn}bin/bootstrap [ flags ]
${bldgrn}bin/bashmatic-install [ flags ]
${bldylw}DESCRIPTION:
${bldblu}Install Bashmatic, and on OSX also installs build tools, brew and latest bash
Expand Down Expand Up @@ -436,8 +436,8 @@ last_index=$((len - 1))

set +e

# Allow sourcing in bin/bootstrap and using it's shell functions, eg:
# source bin/bootstrap init
# Allow sourcing in bin/bashmatic-install and using it's shell functions, eg:
# source bin/bashmatic-install init
if [[ -n ${ZSH_EVAL_CONEXT} && ${ZSH_EVAL_CONTEXT} =~ :file$ ]] ||
[[ -n ${BASH_VERSION} && "$0" != "${BASH_SOURCE[${last_index}]}" ]]; then
echo >/dev/null
Expand Down
5 changes: 3 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ osx-dependencies() {
if command -v brew >/dev/null && command -v gdate >/dev/null ; then
return
else
source "${BASHMATIC_HOME}/bin/bootstrap" init
source "${BASHMATIC_HOME}/bin/bashmatic-install"
set +e
bootstrap-dependencies
darwin-requirements

fi
}

Expand Down

0 comments on commit 01f6f95

Please sign in to comment.