32 Commits

Author SHA1 Message Date
Nathan Henrie
de786ec51c Support optional space after -p / --path
Fixes https://github.com/Homebrew/install/issues/724
2023-01-10 10:31:06 -07:00
Mike McQuaid
cddfe84103 uninstall: remove use of install-info
These can be cleaned up by hand and `install-info` doesn't ship with
some versions of Linux and macOS Ventura.

Fixes #688
Closes #699
2022-09-27 12:45:36 +01:00
Bogdan Kecman
b6097ff92c brew style fix 2022-09-06 12:34:13 +02:00
Bogdan Kecman
c5682164b4 Added /usr/local to search path for M1 system (if upgraded to M1 from Intel homebrew will be installed in /usr/local and will be looked in /opt so look at /usr/local too) 2022-09-06 07:19:54 +02:00
Adrian Ho
61e3c015b0 ensure scripts are not run in POSIX mode
Closes #686.
2022-08-20 23:14:31 +08:00
Libo Huang
06ed7b0404 Fix shellcheck issues
https://www.shellcheck.net/wiki/SC2248 -- Prefer double quoting even when v..
  https://www.shellcheck.net/wiki/SC2250 -- Prefer putting braces around vari..
2022-06-12 18:56:20 +08:00
Huang-Libo
230d22ca2b Update uninstall.sh
Use the correct `brew` command in different arch ( according to `$homebrew_prefix_default` )
2022-06-12 18:11:18 +08:00
SEONGILKIM
58b509316b uninstall.sh: fix indent from tab to spaces 2022-06-07 19:20:34 +09:00
kshired
44497ff3f2 uninstall.sh: remove useless backtick 2022-06-07 18:40:10 +09:00
kshired
bdefad0d76 uninstall.sh: change imply --force NONINTERACIVE is set. 2022-06-07 17:43:57 +09:00
kshired
bf79821cb9 uninstall.sh: fix single quote to double quote 2022-06-07 17:27:08 +09:00
kshired
33903d34e0 uninstall.sh: add variable NONINTERACTIVE for non-interactive mode 2022-06-07 01:02:10 +09:00
William Pursell
b199955112 Print error messages to stderr 2022-03-31 11:56:33 -04:00
XuehaiPan
2f174b92fd uninstall.sh: sync functions for sudo-check from install.sh 2021-11-10 14:43:14 +08:00
EricFromCanada
1afff12c7d improve grammar 2021-11-09 13:50:31 -05:00
XuehaiPan
dac2110190 shellcheck: disable unneeded check SC2312 2021-11-09 14:46:15 +08:00
XuehaiPan
658d01eb82 uninstall.sh: remove remaining auxiliary files 2021-09-27 21:49:25 +08:00
XuehaiPan
c8703a2d26 style: add quotes around subshell results 2021-09-16 23:49:47 +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
Lyra Naeseth
995aaeb490 Show actual default prefix in uninstall.sh --help 2021-07-24 14:47:56 -07:00
Carlo Cabrera
fb5e374428 Replace references to master with HEAD
We use `HEAD` in the install instructions on brew.sh, so we may as well
do the same here.

There are still some references to `master` in `install.sh`, but I don't
think those can be changed.
2021-03-23 19:47:26 +00:00
Jitesh Pubreja
6c348cde49 Refactored Extra Variable on Suggestions 2021-01-02 20:03:16 +05:30
Jitesh Pubreja
fd742b0c62 Added Default prefix for MacOS on ARM 2021-01-01 02:38:12 +05:30
carlocab
899da68a24 uninstall: add short dry-run flag -n
`-n` is more commonly recognised as the short form of the `--dry-run`
flag. This is the case, for example, with git and brew.
2020-12-28 11:25:36 +00:00
LakshayKaushik
fa884ca7dd Updated abort message
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-06-02 19:21:39 +05:30
lakshaykaushik
921a117deb Run the script as a standard user 2020-06-02 16:32:45 +05:30
John Gunnison
d43a5bc1f2 Fix SUDO_ASKPASS support 2020-05-30 18:13:47 -05:00
itchyny
4d3d7fd761 Make the number of arguments of the abort function arbitrary 2020-04-14 17:55:26 +09:00
itchyny
03c4f7a100 Fix unbound variable error on quick abort 2020-04-14 17:28:21 +09:00
gromgit
af2d8d68dd Initial translation to Bash 2020-04-08 20:03:09 +08:00