install.sh: Regen
This commit is contained in:
parent
4ed989b114
commit
1373655894
3 changed files with 9 additions and 9 deletions
|
|
@ -437,10 +437,10 @@ ensure_prefix() {
|
||||||
if [ -n "${PREFIX-}" ]; then
|
if [ -n "${PREFIX-}" ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
# owned by root but you don't need root to write to its subdirectories which is all we
|
||||||
# need to do.
|
# 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
|
# This also handles M1 Mac's which do not allow modifications to /usr/local even
|
||||||
# with sudo.
|
# with sudo.
|
||||||
PREFIX=$HOME/.local
|
PREFIX=$HOME/.local
|
||||||
|
|
@ -453,10 +453,10 @@ ensure_prefix_sh_c() {
|
||||||
ensure_prefix
|
ensure_prefix
|
||||||
|
|
||||||
sh_c="sh_c"
|
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
|
# owned by root but you don't need root to write to its subdirectories which is all we
|
||||||
# need to do.
|
# need to do.
|
||||||
if ! is_writable_dir "$PREFIX/bin"; then
|
if ! is_writable_dir "$PREFIX/lib"; then
|
||||||
sh_c="sudo_sh_c"
|
sh_c="sudo_sh_c"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
ci/sub
2
ci/sub
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1c94f3d0120199b85eb5e45841a9bb4515ddf965
|
Subproject commit 64036dae6aa4da7c5928e0b00e4d360f4cafa238
|
||||||
|
|
@ -573,10 +573,10 @@ ensure_prefix() {
|
||||||
if [ -n "${PREFIX-}" ]; then
|
if [ -n "${PREFIX-}" ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
# owned by root but you don't need root to write to its subdirectories which is all we
|
||||||
# need to do.
|
# 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
|
# This also handles M1 Mac's which do not allow modifications to /usr/local even
|
||||||
# with sudo.
|
# with sudo.
|
||||||
PREFIX=$HOME/.local
|
PREFIX=$HOME/.local
|
||||||
|
|
@ -589,10 +589,10 @@ ensure_prefix_sh_c() {
|
||||||
ensure_prefix
|
ensure_prefix
|
||||||
|
|
||||||
sh_c="sh_c"
|
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
|
# owned by root but you don't need root to write to its subdirectories which is all we
|
||||||
# need to do.
|
# need to do.
|
||||||
if ! is_writable_dir "$PREFIX/bin"; then
|
if ! is_writable_dir "$PREFIX/lib"; then
|
||||||
sh_c="sudo_sh_c"
|
sh_c="sudo_sh_c"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue