984 Commits

Author SHA1 Message Date
XuehaiPan
8d27de584c tests: check code style in CI tests 2021-09-16 23:52:57 +08:00
XuehaiPan
c8703a2d26 style: add quotes around subshell results 2021-09-16 23:49:47 +08:00
Mike McQuaid
7cfea33ff9 Merge pull request #577 from XuehaiPan/fix-inconsistent-shell-style
style: fix inconsistent code style for shell scripts
2021-09-16 15:03:46 +01:00
Rylan Polster
596ebf4f3e Merge pull request #578 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-09-15 22:08:12 -04:00
BrewTestBot
f302be632c triage-issues.yml: update to match main configuration 2021-09-16 01:48:31 +00:00
XuehaiPan
127ba78c50 install.sh: remove redundant quotes 2021-09-16 02:31:14 +08:00
XuehaiPan
71dd22c4d7 tests: enable all checks of shellcheck 2021-09-16 02:17:51 +08:00
XuehaiPan
e0a321c8cc style: fix inconsistent code style 2021-09-16 02:16:59 +08:00
XuehaiPan
346c621f54 style: fix inconsistent code style by runing brew style --fix 2021-09-16 02:11:45 +08:00
XuehaiPan
aba704db8d style: indent with 2 spaces and remove multiline for statements 2021-09-16 02:11:10 +08:00
XuehaiPan
b5ac91b7a7 style: apply suggestions from shellcheck --enable=all 2021-09-16 02:02:44 +08:00
Mike McQuaid
d0833a1519 Merge pull request #576 from branchvincent/all-repos_autofix_all-repos-sed
workflows/tests: use shorter name
2021-09-13 10:44:42 +01:00
Branch Vincent
ff304c779d workflows/tests: use shorter name
Committed via https://github.com/asottile/all-repos
2021-09-13 00:10:46 -04:00
Mike McQuaid
4c25ee5f48 Merge pull request #575 from XuehaiPan/master
install.sh: remove dependency for `which` command
2021-09-12 12:04:39 +01:00
XuehaiPan
f178fab820 install.sh: follow code style 2021-09-11 15:03:07 +08:00
XuehaiPan
05c8d5a368 install.sh: split functions 2021-09-11 01:07:50 +08:00
XuehaiPan
83041832e7 install.sh: fix readarray for WSL Bash 2021-09-11 00:33:47 +08:00
XuehaiPan
ab88fb6382 install.sh: remove dependency for which command 2021-09-11 00:08:21 +08:00
Mike McQuaid
4d4d84152e Merge pull request #573 from XuehaiPan/master
install.sh: use relative path for symlinks
2021-09-01 11:40:26 +01:00
XuehaiPan
582cfb6b8d install.sh: abort on unexpected Homerew/brew repository path 2021-09-01 18:08:04 +08:00
Mike McQuaid
2871868135 Merge pull request #572 from XuehaiPan/prompt-first
install.sh: show prompt messages before asking password
2021-09-01 10:57:42 +01:00
XuehaiPan
01f87ad223 install.sh: use relative path for symlinks 2021-09-01 16:10:14 +08:00
XuehaiPan
f5536d840e install.sh: show prompt messages before asking password 2021-09-01 16:08:34 +08:00
Mike McQuaid
fa43a9ddb7 Merge pull request #570 from ryenus/patch-1
install.sh: add sudo availability check
2021-08-30 15:38:31 +01:00
Michka Popoff
4f8f632201 install.sh: use homebrew-core as default remote for Linux 2021-08-27 22:45:50 +02:00
ryenus
e09be7c923 improve sudo availability check as proposed 2021-08-27 08:36:00 +00:00
ryenus
e2b6943ad6 add sudo existence check
The existence of "/usr/bin/sudo" is not guaranteed in some container 
based environment, hence adding the existence check here.
2021-08-27 14:05:58 +08:00
Mike McQuaid
f56cd718a4 Merge pull request #561 from silverlyra/default-prefix-arm64
Show actual default prefix in uninstall.sh --help
2021-08-23 14:41:42 +01:00
Rylan Polster
6092e2132f Merge pull request #569 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-08-20 13:33:37 -04:00
BrewTestBot
b4a9972aac triage-issues.yml: update to match main configuration 2021-08-20 17:12:52 +00:00
Mike McQuaid
8b75224bce Merge pull request #565 from maxim-belkin/find-tool-func
install.sh: search PATH for usable cURL/Git on Linux
2021-08-09 16:05:41 +01:00
Maxim Belkin
6e383e52b6 install.sh: add a blank line
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-08-09 09:02:35 -05:00
Maxim Belkin
1ec93aeaef install.sh: search PATH for usable cURL/Git on Linux
**Changes that affect Linux only**

1. New `find_tool` function (based on old `no_usable_ruby`)
   searches for the specified program in PATH.
   This function automatically calls `test_${tool_name}` function that
   must verify that the tool satisfies Homebrew requirements. Example:

   ```sh
   g_tool=$(find_tool git)
   c_tool=$(find_tool curl)
   r_tool=$(find_tool ruby)
   ```
2. New `test_curl` and `test_git` functions (which are similar to `test_ruby`)
3. Rewrote `no_usable_ruby` function to take advantage of the `find_tool` function
4. Search PATH for usable cURL and Git. If found tools are not in
   `/usr/bin/`, automatically set `HOMEBREW_{GIT,CURL}_PATH` and `HOMEBREW_DEVELOPER`.

**Changes that affect both Linux and macOS**

Alter the warning message about `HOMEBREW_PREFIX/bin` not being in `PATH`
and instruct users to look at the 'Next steps' section below.
2021-08-04 14:32:03 -05:00
Rylan Polster
fb3acdd4ba Merge pull request #564 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-08-02 22:06:20 -07:00
BrewTestBot
d7abaf30cc triage-issues.yml: update to match main configuration 2021-08-03 04:45:36 +00:00
Lyra Naeseth
995aaeb490 Show actual default prefix in uninstall.sh --help 2021-07-24 14:47:56 -07:00
Mike McQuaid
f392a931a9 Merge pull request #558 from XuehaiPan/fix-test
tests: fix non-default URLs for test cases
2021-07-21 14:26:22 +01:00
Mike McQuaid
521ec24dbf Merge pull request #557 from alebcay/ambiguous-path-add
install.sh: fix ambiguous instructions for modifying PATH
2021-07-21 14:18:55 +01:00
XuehaiPan
ccfb50f3ce tests: fix non-default URLs for test cases 2021-07-21 21:03:18 +08:00
Caleb Xu
8e0a706df6 install.sh: fix ambiguous instructions for modifying PATH 2021-07-21 08:29:47 -04:00
Rylan Polster
61f40dfdd5 Merge pull request #555 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-07-16 02:18:17 -04:00
BrewTestBot
bee57824fc triage-issues.yml: update to match main configuration 2021-07-16 05:56:32 +00:00
Mike McQuaid
d179c33635 Merge pull request #551 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-07-09 12:34:55 +01:00
BrewTestBot
e59b085983 triage-issues.yml: update to match main configuration 2021-07-09 11:27:53 +00:00
Mike McQuaid
c4a2312d34 Merge pull request #550 from XuehaiPan/fix-premissions
install: fix directory permissions (fixes #549)
2021-06-25 15:45:11 +01:00
XuehaiPan
2c99da76bf install: fix directory permissions 2021-06-25 21:59:14 +08:00
Rylan Polster
147c5ab385 Merge pull request #546 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-05-23 13:27:45 -04:00
BrewTestBot
f1a4f5fee9 triage-issues.yml: update to match main configuration 2021-05-23 17:09:48 +00:00
Rylan Polster
e6a3b8eee2 Merge pull request #545 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-05-14 18:11:50 -04:00
BrewTestBot
7999b3eea6 triage-issues.yml: update to match main configuration 2021-05-14 21:48:31 +00:00