mirror of
https://github.com/tj/n.git
synced 2024-11-24 02:27:28 +01:00
Add flag for linking and log that experimental
This commit is contained in:
parent
d6d8961ed1
commit
a6fdd81db1
2
bin/n
2
bin/n
@ -681,6 +681,7 @@ activate() {
|
||||
|
||||
disable_pax_mprotect "${installed_node}"
|
||||
else
|
||||
log "linking" "support for install using symlinks is experimental"
|
||||
[[ -d "${N_PREFIX}/bin" ]] || mkdir "${N_PREFIX}/bin"
|
||||
clean_link "${dir}/bin/node" "${N_PREFIX}/bin/node"
|
||||
if [[ -z "${N_PRESERVE_NPM}" ]]; then
|
||||
@ -1510,6 +1511,7 @@ while [[ $# -ne 0 ]]; do
|
||||
-q|--quiet) set_quiet ;;
|
||||
-d|--download) ACTIVATE=false ;;
|
||||
--insecure) set_insecure ;;
|
||||
-L|--link) N_EXPERIMENTAL_USE_SYMLINK=true ;;
|
||||
-p|--preserve) N_PRESERVE_NPM="true" ;;
|
||||
--no-preserve) N_PRESERVE_NPM="" ;;
|
||||
--use-xz) N_USE_XZ="true" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user