Skip to content

Commit eee5170

Browse files
author
openclaw-installer-sync[bot]
committed
chore: sync installers from openclaw 2796eebb03d3
1 parent f8a840d commit eee5170

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

public/install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,8 +1762,7 @@ fix_npm_permissions() {
17621762
npm config set prefix "$HOME/.npm-global"
17631763
ui_warn "Avoid sudo npm i -g for future OpenClaw updates; use npm i -g openclaw@latest so npm keeps using this user prefix instead of a different global prefix."
17641764

1765-
# shellcheck disable=SC2016
1766-
persist_shell_path_prepend "$HOME/.npm-global/bin" '$HOME/.npm-global/bin' || true
1765+
persist_shell_path_prepend "$HOME/.npm-global/bin" "\$HOME/.npm-global/bin" || true
17671766

17681767
export PATH="$HOME/.npm-global/bin:$PATH"
17691768
ui_success "npm configured for user installs"
@@ -1917,8 +1916,7 @@ ensure_user_local_bin_on_path() {
19171916

19181917
export PATH="$target:$PATH"
19191918

1920-
# shellcheck disable=SC2016
1921-
local path_line='export PATH="$HOME/.local/bin:$PATH"'
1919+
local path_line="export PATH=\"\$HOME/.local/bin:\$PATH\""
19221920
for rc in "$HOME/.bashrc" "$HOME/.zshrc"; do
19231921
if [[ -f "$rc" ]] && ! grep -q ".local/bin" "$rc"; then
19241922
echo "$path_line" >> "$rc"

0 commit comments

Comments
 (0)