black7375/BlaCk-Void-Zsh

macOS Install Error

sdrstone1 opened this issue · 5 comments

Describe the bug
A clear and concise description of what the bug is.

Running install script asks sudo permission, and brew throws permission error.

kollhong@Macintosh-4 ~ % bash ~/.zsh/BlaCk-Void-Zsh.sh
----------------------------------------
         BlaCk-Void Zsh Setup
----------------------------------------

--------------------
  Downloads

Password:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
kollhong@Macintosh-4 ~ %  

to install this BlaCk-Void-Zsh, I commented out the 30th line (sudo pacapt -Sy)
and manually ran command sudo pacapt -Sy before running install script.

I thought sudo permission affects one single line, but it seems that sudo permission affects subsequent commands.

To Reproduce
Tell me when it happens.

  • [X ] Install
  • Run
  • Update
  • Others: explain
git clone https://github.com/black7375/BlaCk-Void-Zsh.git ~/.zsh
bash ~/.zsh/BlaCk-Void-Zsh.sh

Expected behavior
A clear and concise description of what you expected to happen.

install BlaCk-Void-Zsh

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):
General

  • OS(uname -a): macOS 10.15.7 on iMac 5K 2015
    Darwin Macintosh-4.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
  • ZSH(zsh --version): zsh 5.8 (x86_64-apple-darwin19.3.0)

CheckList

  • [V] Use latest commit
  • Custom in use
  • SSH

Additional context
Add any other context about the problem here.

Ok, I'll fix it.

My current Mac is broken and I couldn't test it.
Test if it works after performing git pull.

Thank you.
I will try it tonight.

Sorry for late...
I did uninstall and install again.
it works very well.

Have a nice day.