install.sh: Regen [ci-force]

This commit is contained in:
Anmol Sethi 2023-01-24 14:57:35 -08:00
parent 4ed989b114
commit ca84d9e152
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
3 changed files with 9 additions and 9 deletions

View file

@ -437,10 +437,10 @@ ensure_prefix() {
if [ -n "${PREFIX-}" ]; then
return
fi
# The reason for checking whether bin is writable is that on macOS you have /usr/local
# The reason for checking whether lib is writable is that on macOS you have /usr/local
# owned by root but you don't need root to write to its subdirectories which is all we
# need to do.
if ! is_writable_dir "/usr/local/bin"; then
if ! is_writable_dir "/usr/local/lib"; then
# This also handles M1 Mac's which do not allow modifications to /usr/local even
# with sudo.
PREFIX=$HOME/.local
@ -453,10 +453,10 @@ ensure_prefix_sh_c() {
ensure_prefix
sh_c="sh_c"
# The reason for checking whether bin is writable is that on macOS you have /usr/local
# The reason for checking whether lib is writable is that on macOS you have /usr/local
# owned by root but you don't need root to write to its subdirectories which is all we
# need to do.
if ! is_writable_dir "$PREFIX/bin"; then
if ! is_writable_dir "$PREFIX/lib"; then
sh_c="sudo_sh_c"
fi
}

2
ci/sub

@ -1 +1 @@
Subproject commit 1c94f3d0120199b85eb5e45841a9bb4515ddf965
Subproject commit 64036dae6aa4da7c5928e0b00e4d360f4cafa238

View file

@ -573,10 +573,10 @@ ensure_prefix() {
if [ -n "${PREFIX-}" ]; then
return
fi
# The reason for checking whether bin is writable is that on macOS you have /usr/local
# The reason for checking whether lib is writable is that on macOS you have /usr/local
# owned by root but you don't need root to write to its subdirectories which is all we
# need to do.
if ! is_writable_dir "/usr/local/bin"; then
if ! is_writable_dir "/usr/local/lib"; then
# This also handles M1 Mac's which do not allow modifications to /usr/local even
# with sudo.
PREFIX=$HOME/.local
@ -589,10 +589,10 @@ ensure_prefix_sh_c() {
ensure_prefix
sh_c="sh_c"
# The reason for checking whether bin is writable is that on macOS you have /usr/local
# The reason for checking whether lib is writable is that on macOS you have /usr/local
# owned by root but you don't need root to write to its subdirectories which is all we
# need to do.
if ! is_writable_dir "$PREFIX/bin"; then
if ! is_writable_dir "$PREFIX/lib"; then
sh_c="sudo_sh_c"
fi
}