nervur 0.37.23 → 0.37.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,15 +47,15 @@ later one, which moves the organism into it: `present`; `file`; `keyring`, your
47
47
  server, `nervur install --boot present` asks a passphrase in place of `boot.key`. Whoever is present at the account owns
48
48
  the organism, and `nervur state` is its brain answering:
49
49
 
50
- An organism takes its package from the registry your npm names, npm's own by default, and never moves itself: a
51
- version lands only where you name it, by `nervur update` on the machine or an owner's `upgrade` from afar. `--channel
52
- <registry>` names another registry for one install or update, a mirror of your own, for that act alone.
53
-
54
50
  ```bash
55
51
  nervur install
56
52
  nervur state
57
53
  ```
58
54
 
55
+ An organism takes its package from the registry your npm names, npm's own by default, and never moves itself: a
56
+ version lands only where you name it, by `nervur update` on the machine or an owner's `upgrade` from afar. `--channel
57
+ <registry>` names another registry for one install or update, a mirror of your own, for that act alone.
58
+
59
59
  `nervur ask brain` describes what the brain takes, and `nervur help` prints every command.
60
60
 
61
61
  ### A faculty of yours
@@ -64,7 +64,10 @@ $program = Join-Path $root 'node.exe'
64
64
  $beside = Join-Path $root '.nervur-node.ready\node.exe'
65
65
  if (-not (Test-Path $program) -and (Test-Path $beside)) { Move-Item $beside $program }
66
66
 
67
- if (-not (Test-Path (Join-Path $root 'nervur.cmd'))) { Install-Whole }
67
+ if (-not (Test-Path (Join-Path $root 'nervur.cmd'))) {
68
+ if (Test-Path $root) { Stop-Install "$root stands and holds no nervur command: move it aside, or name another folder as NERVUR_ROOT" }
69
+ Install-Whole
70
+ }
68
71
 
69
72
  $kept = [Environment]::GetEnvironmentVariable('Path', 'User')
70
73
  if (($kept -split ';') -notcontains $root) {
@@ -84,14 +84,23 @@ lay() {
84
84
 
85
85
  keep_on_path() {
86
86
  line="export PATH=\"$root/bin:\$PATH\""
87
- for profile in "$HOME/.profile" "$HOME/.zprofile"; do
88
- if [ "$profile" = "$HOME/.profile" ] || [ "$(uname -s)" = Darwin ]; then
89
- grep -qsF "$line" "$profile" || echo "$line" >>"$profile"
90
- fi
87
+ profiles=$HOME/.profile
88
+ shell=${SHELL:-}
89
+ if [ "$(uname -s)" = Darwin ] || [ "${shell##*/}" = zsh ]; then profiles="$profiles $HOME/.zprofile"; fi
90
+ if [ -f "$HOME/.bash_profile" ]; then
91
+ profiles="$profiles $HOME/.bash_profile"
92
+ elif [ -f "$HOME/.bash_login" ]; then
93
+ profiles="$profiles $HOME/.bash_login"
94
+ fi
95
+ for profile in $profiles; do
96
+ grep -qsF "$line" "$profile" || echo "$line" >>"$profile"
91
97
  done
92
98
  }
93
99
 
94
- [ -x "$root/bin/nervur" ] || lay
100
+ if [ ! -x "$root/bin/nervur" ]; then
101
+ [ ! -e "$root" ] || stop "$root stands and holds no nervur command: move it aside, or name another folder as NERVUR_ROOT"
102
+ lay
103
+ fi
95
104
  keep_on_path
96
105
  PATH="$root/bin:$PATH"
97
106
  export PATH
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nervur",
3
- "version": "0.37.23",
3
+ "version": "0.37.25",
4
4
  "description": "Nervur's one name: the nervur command, on the installer of the host it is laid on. 0.x, unstable.",
5
5
  "keywords": [
6
6
  "cli",
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@nervur.org/installer-node": "0.37.23"
27
+ "@nervur.org/installer-node": "0.37.25"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.23.5"