984 Commits

Author SHA1 Message Date
eb415db6ba Modifications to install.sh 2024-12-02 03:23:11 -06:00
Mike McQuaid
5e7f30635a Merge pull request #794 from osalbahr/doc-install-help
doc: add `install.sh --help`. Fix #790
2023-07-28 15:30:42 +01:00
Osama Albahrani
f20d07fe1c install.sh: NONINTERACTIVE vs CI
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-07-28 09:44:17 -04:00
Osama Albahrani
08134d7208 install.sh: remove commented-out shift
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-07-28 09:26:30 -04:00
Osama Albahrani
723dc192b7 doc: change $0 to install.sh
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-07-28 09:25:04 -04:00
Osama Albahrani
ea868ee1d8 doc: install.sh: clarify NONINTERACTIVE
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-07-28 09:23:14 -04:00
Osama Albahrani
92f67fa0a8 doc: add install.sh --help. Fix #790
Adapted from `uninstall.sh`
2023-07-27 18:25:56 -04:00
Mike McQuaid
f68ace21f6 Merge pull request #792 from MikeMcQuaid/document_pkg_installer
README: document macOS .pkg installer.
2023-07-27 12:03:35 +01:00
Mike McQuaid
59d1461511 README: document macOS .pkg installer.
This seems a nice place to let people know.
2023-07-25 16:24:34 +01:00
Mike McQuaid
8494f72c03 Merge pull request #778 from Homebrew/sync-triage-config
Synchronize triage configuration
2023-06-13 11:16:42 +01:00
BrewTestBot
43367ad6bf triage-issues.yml: update to match main configuration 2023-06-13 10:05:36 +00:00
Mike McQuaid
716a1d024f Merge pull request #775 from ChillerDragon/pr_fix_fix_fix_path
Fix `./bin` being in `$PATH` (mac)
2023-05-23 09:55:50 +01:00
Mike McQuaid
96362c02f6 install.sh: remove unnecessary variable. 2023-05-23 09:43:48 +01:00
ChillerDragon
800df6bd7a Fix ./bin being in $PATH (mac) 2023-05-22 20:33:47 +02:00
Mike McQuaid
12564487c5 Merge pull request #774 from ChillerDragon/pr_fix_err
Fix git outdated error saying git is not installed
2023-05-18 13:34:26 +01:00
ChillerDragon
be7579abe3 Fix git outdated error saying git is not installed
Fixes #773
2023-05-17 23:22:24 +02:00
Mike McQuaid
fc8acb0828 Merge pull request #762 from Homebrew/sync-triage-config
Synchronize triage configuration
2023-04-05 16:31:51 +01:00
BrewTestBot
d2588e9ba2 triage-issues.yml: update to match main configuration 2023-04-05 15:20:17 +00:00
Mike McQuaid
6df4f60d30 Merge pull request #760 from b8rky/support-oci-containers
install: support OCI containers as root
2023-04-03 08:46:52 +01:00
b8rky
f18475ba4d install: support OCI containers as root 2023-04-01 20:09:32 +00:00
Mike McQuaid
010d7b3f54 Merge pull request #756 from ChillerDragon/pr_rel_bin_path2
Fix `./bin` being in `$PATH`
2023-03-15 12:11:42 -04:00
Chiller Dragon
11bcaa8fdb Update install.sh
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-03-13 18:05:50 +01:00
Chiller Dragon
41842df713 Match git version with regex
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2023-03-11 20:22:03 +01:00
ChillerDragon
c699c94017 Ignore local paths in $PATH in find_tool
Fixes the installer failing if `./bin` is at the begging of `$PATH`

Ensures the installer does not pick a local path to
the git executable

Could happen if one has `export PATH='./bin:$PATH` in the shell rc file
then it would set USABLE_GIT to be `./bin/git`
which later fails when another cd was executed

So `command -v git` migth spit out `./bin/git`

The fix is using `find_tool` instead of `command -v`
and `find_tool` ignores all paths that do not start
with a leading slash

Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2023-03-10 10:33:45 +01:00
Mike McQuaid
16aefe107e Merge pull request #755 from Homebrew/revert-752-pr_rel_bin_path
Revert "Fix `./bin` being in `$PATH`"
2023-03-06 13:02:59 +00:00
Mike McQuaid
be699a5683 Revert "Fix ./bin being in $PATH" 2023-03-06 13:02:40 +00:00
Mike McQuaid
20b4b64b9b Merge pull request #752 from ChillerDragon/pr_rel_bin_path
Fix `./bin` being in `$PATH`
2023-03-06 12:26:24 +00:00
ChillerDragon
5ed4d6f99d Fix ./bin being in $PATH
Ensures the installer does not pick a local path to
the git executable

Could happen if one has `export PATH='./bin:$PATH` in the shell rc file
then it would set USABLE_GIT to be `./bin/git`
which later fails when another cd was executed

So `command -v git` migth spit out `./bin/git`
but then `readlink -f` turns it into `/usr/bin/git`
2023-03-03 17:52:54 +01:00
Mike McQuaid
95648ef45c Merge pull request #751 from gromgit/use-usable-git
install: use known-good Git
2023-02-28 11:58:34 +00:00
Adrian Ho
ce3f3e050e install: use known-good Git
Since we're testing each `git` in `$PATH` for suitability, we might as well use the one we've approved. :)

Addresses https://github.com/orgs/Homebrew/discussions/4275.
2023-02-28 16:43:45 +08:00
Mike McQuaid
b8ee28fd82 Merge pull request #742 from UnrealApex/append-to-shell-profile
Check if Homebrew path evaluation statement is already in shell profile
2023-02-27 12:40:12 +00:00
Aaron
082152be23 Remove comment 2023-02-26 05:38:53 -08:00
Aaron
846897654e Merge branch 'append-to-shell-profile' of https://github.com/UnrealApex/install into append-to-shell-profile 2023-02-24 16:53:14 +00:00
Aaron
5613825329 Use command instead of type to check if brew is already in path 2023-02-24 16:51:32 +00:00
Aaron
95306abb70 Remove extra spaces
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com>
2023-02-23 23:29:12 -08:00
Aaron
9649476486 Check for brew in $PATH
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com>
2023-02-23 22:24:10 -08:00
Aaron
b54c6544bf Merge branch 'Homebrew:master' into append-to-shell-profile 2023-02-23 17:47:50 -08:00
Aaron
f3b514914e Remove empty else block 2023-02-23 16:15:07 -08:00
Aaron
e67c173403 Rewrite if statement 2023-02-23 17:10:28 +00:00
Aaron
6b692a85ef Fix grep condition
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2023-02-23 08:52:15 -08:00
Aaron
2a853264cf Remove grep flag causing error
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2023-02-23 08:50:51 -08:00
Mike McQuaid
5443fd9de3 Merge pull request #750 from ZhongRuoyu/git-init-default-branch-override
install.sh: override default branch config for `git init` invocations
2023-02-23 15:47:33 +00:00
Ruoyu Zhong
251fb05b7e install.sh: override default branch config for git init invocations
Same as #747, but with a better approach which should be compatible
with older versions of `git`. This makes sure `git init` always creates
a `master` branch.

The same is being done at
76b87c4a00/Library/Homebrew/dev-cmd/tap-new.rb (L162).

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-02-23 23:20:06 +08:00
Mike McQuaid
a417d530e6 Merge pull request #749 from Homebrew/revert-747-git-init-default-branch
Revert "install.sh: ensure `master` is used for `git init`"
2023-02-23 13:20:38 +00:00
Mike McQuaid
8e670a881b Revert "install.sh: ensure master is used for git init" 2023-02-23 13:20:19 +00:00
Mike McQuaid
2298b9d645 Merge pull request #747 from ZhongRuoyu/git-init-default-branch
install.sh: ensure `master` is used for `git init`
2023-02-23 08:55:40 +00:00
Ruoyu Zhong
3dfd4cfda7 install.sh: ensure master is used for git init
This is not the case when `init.defaultBranch` is set to something else,
like `main`. And in that case, if `HOMEBREW_DEVELOPER` is also set, the
`Homebrew/brew` repository and `homebrew/core` (if tapped) will stay on
that branch instead of `master` (and won't be updated anymore since
there will be no tracking information available).

Also, for consistency, replace the short option `-q` with `--quiet`, the
long one.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-02-23 12:36:55 +08:00
Aaron
6051199c7d Pass CI 2023-02-22 19:44:24 +00:00
Aaron
1c8f9f699c Store grep in a variable 2023-02-22 19:35:42 +00:00
Aaron
81caa76a40 Revert "Simplify control flow"
This reverts commit 4d6ff28b79.
2023-02-22 19:00:04 +00:00