-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install to another dir on GNU/Linux #770
Labels
Comments
We intentionally don't support installing to unsupported directories with the official installer, sorry. |
That's fine, but I'm still going to make an AUR package. |
should i just not distribute your installer and use my hacked up version? if so i can do things like diff --git a/install.sh b/install.sh
index 518d2e8..22d1fbd 100755
--- a/install.sh
+++ b/install.sh
@@ -198,37 +198,7 @@ export HOMEBREW_NO_ANALYTICS_MESSAGE_OUTPUT=1
unset HAVE_SUDO_ACCESS # unset this from the environment
have_sudo_access() {
- if [[ ! -x "/usr/bin/sudo" ]]
- then
- return 1
- fi
-
- local -a SUDO=("/usr/bin/sudo")
- if [[ -n "${SUDO_ASKPASS-}" ]]
- then
- SUDO+=("-A")
- elif [[ -n "${NONINTERACTIVE-}" ]]
- then
- SUDO+=("-n")
- fi
-
- if [[ -z "${HAVE_SUDO_ACCESS-}" ]]
- then
- if [[ -n "${NONINTERACTIVE-}" ]]
- then
- "${SUDO[@]}" -l mkdir &>/dev/null
- else
- "${SUDO[@]}" -v && "${SUDO[@]}" -l mkdir &>/dev/null
- fi
- HAVE_SUDO_ACCESS="$?"
- fi
-
- if [[ -n "${HOMEBREW_ON_MACOS-}" ]] && [[ "${HAVE_SUDO_ACCESS}" -ne 0 ]]
- then
- abort "Need sudo access on macOS (e.g. the user ${USER} needs to be an Administrator)!"
- fi
-
- return "${HAVE_SUDO_ACCESS}"
+ return 1
}
execute() { because getting root is not allowed in makepkg PKGBUIDL |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please apply this patch:
I also suggest you apply:
The text was updated successfully, but these errors were encountered: