@anvil-works/anvil-cli 0.5.14 → 0.5.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvil-works/anvil-cli",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
4
4
  "description": "CLI tool for developing Anvil apps locally",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/api.d.ts",
@@ -42,11 +42,13 @@ append_path_export() {
42
42
  persist_path_hint() {
43
43
  append_path_export "$HOME/.profile"
44
44
 
45
- if [ -n "${ZSH_VERSION:-}" ] || [ "${SHELL:-}" = "$(command -v zsh 2>/dev/null || true)" ]; then
45
+ shell_name="${SHELL##*/}"
46
+
47
+ if [ -n "${ZSH_VERSION:-}" ] || [ "$shell_name" = "zsh" ] || [ -f "$HOME/.zshrc" ]; then
46
48
  append_path_export "$HOME/.zshrc"
47
49
  fi
48
50
 
49
- if [ -n "${BASH_VERSION:-}" ] || [ "${SHELL:-}" = "$(command -v bash 2>/dev/null || true)" ]; then
51
+ if [ -n "${BASH_VERSION:-}" ] || [ "$shell_name" = "bash" ] || [ -f "$HOME/.bashrc" ]; then
50
52
  append_path_export "$HOME/.bashrc"
51
53
  fi
52
54
  }