Switch from nvs
to n
This commit is contained in:
parent
49ab989d1e
commit
391d5d9097
4 changed files with 9 additions and 32 deletions
scripts/Common/Software
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||
home_expression='$HOME/.nvs';
|
||||
export NVS_HOME="$(bash -c echo $home_expression)";
|
||||
git clone https://github.com/jasongin/nvs "$NVS_HOME";
|
||||
|
||||
NVS_HOME="$home_expression" \
|
||||
NVS_PATH="$NVS_HOME" \
|
||||
. "../../Config/NVS/install.sh";
|
||||
|
||||
popd > /dev/null;
|
8
scripts/Common/Software/n/install.sh
Executable file
8
scripts/Common/Software/n/install.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
if [ ! "$UID" -eq 0 ]
|
||||
then
|
||||
sudo bash "$BASH_SOURCE";
|
||||
else
|
||||
npm install -g n;
|
||||
n install latest;
|
||||
fi;
|
Loading…
Add table
Add a link
Reference in a new issue