Can we please relax the requirement that this needs to be installed via sudo?
I currently download the script first and then edit it:
Linux)
FILE="${FILE}_linux"
TARGET="/home/developer/.local/bin"
;;
Installing it as myself works perfectly then.
It could default to ~/.local/bin for non-root execution, otherwise stay with /usr/local/bin. Or just allow the caller to override the value of TARGET via the environment and/or a CLI param and use whatever they wish.
Can we please relax the requirement that this needs to be installed via sudo?
I currently download the script first and then edit it:
Installing it as myself works perfectly then.
It could default to
~/.local/binfor non-root execution, otherwise stay with/usr/local/bin. Or just allow the caller to override the value ofTARGETvia the environment and/or a CLI param and use whatever they wish.