1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 16:07:59 +00:00

fixed permission error

This commit is contained in:
Nebel 2023-06-03 23:36:27 +09:00
parent af044e8fac
commit ffbe02f034
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -5,8 +5,6 @@ cd -- "$(dirname -- "$0")"
function install_homebrew_packages() { function install_homebrew_packages() {
local uid local uid
uid=${SUDO_UID:-$(id -u)} uid=${SUDO_UID:-$(id -u)}
sudo --user="#$uid" \
mkdir -p /home/linuxbrew/.linuxbrew
sudo --user="#$uid" \ sudo --user="#$uid" \
NONINTERACTIVE=1 \ NONINTERACTIVE=1 \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"