Add a script for configuring nvs

This commit is contained in:
Manuel Thalmann 2023-04-04 15:28:07 +02:00
parent 89eb9b26b7
commit cc35f7e065
2 changed files with 23 additions and 5 deletions
scripts/Common/Software/NVS

View file

@ -1,7 +1,11 @@
#!/bin/bash
export NVS_HOME="$HOME/.nvs";
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";
# shellcheck source=~/.nvs/nvs.sh
. "$NVS_HOME/nvs.sh" install;
bash -c 'exec bash -c "nvs add latest"';
bash -c 'exec bash -c "nvs link latest"';
NVS_HOME="$home_expression" \
NVS_PATH="$NVS_HOME" \
. "../../Config/NVS/install.sh";
popd > /dev/null;