Skip to content

Commit 4f7d5a0

Browse files
committed
fix(cli): fix from review feedback
1 parent c9c4bb1 commit 4f7d5a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/cli/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ add_bin_to_path() {
326326

327327
if [ -f "$shell_config" ]; then
328328
if [ ! -w "$shell_config" ]; then
329-
error "Cannot write to $shell_config. Please check the file permissions and re-run the installer."
329+
warn "Cannot write to $shell_config (permission denied), skipping."
330+
return 1
330331
fi
331332
if grep -q "${abs_pattern}/env" "$shell_config" 2>/dev/null || \
332333
grep -q "${ref_pattern}/env" "$shell_config" 2>/dev/null; then

0 commit comments

Comments
 (0)