14 lines
293 B
Bash
Executable file
14 lines
293 B
Bash
Executable file
#!/bin/bash
|
|
NVS_HOME="${NVS_HOME:-'$HOME/.nvs'}";
|
|
NVS_PATH="${NVS_PATH}";
|
|
|
|
profilePath="/etc/profile.d/nvs-home.sh";
|
|
|
|
{
|
|
echo "NVS_HOME=\"$NVS_HOME\"";
|
|
echo "source \"$NVS_PATH/nvs.sh\"";
|
|
} | sudo tee "$profilePath" > /dev/null;
|
|
|
|
source "$profilePath";
|
|
nvs add latest;
|
|
nvs link latest;
|