Switch from nvs to n

This commit is contained in:
Manuel Thalmann 2024-03-20 22:40:37 +01:00
commit 391d5d9097
4 changed files with 9 additions and 32 deletions
scripts/Common/Software

View file

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

View 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;