0
0
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:
John Gee 2021-02-25 20:05:51 +13:00
parent d6d8961ed1
commit a6fdd81db1

2
bin/n
View File

@ -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" ;;